Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ES6 update of sublevel-pouchdb #8960

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
chore(sublevel-pouchdb): simplify clone
  • Loading branch information
Steven-John Lange committed Jun 12, 2024
commit 476c247e5283ad006727aefdd89fc742af57b266
6 changes: 1 addition & 5 deletions packages/node_modules/sublevel-pouchdb/src/nut.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ function getPrefix(db) {
}

function clone(_obj) {
const obj = {};
for (let k in _obj) {
obj[k] = _obj[k];
}
return obj;
return Object.assign({}, _obj);
}

function nut(db, precodec, codec) {
Expand Down