initial commit

This commit is contained in:
2026-03-22 03:21:45 +02:00
commit 897fea9f4e
15431 changed files with 2548840 additions and 0 deletions

26
node_modules/deep-diff/examples/issue-88.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
var diff = require("../");
var before = {
length: 3,
data: [1, 2, 3]
};
var after = {
data: [4, 5, 1, 2, 3],
count: 5
};
var differences = diff(before, after);
console.log(differences);
function applyChanges(target, changes) {
return changes.reduce(
(acc, change) => {
diff.applyChange(acc, true, change);
return acc;
},
target
);
}
console.log(applyChanges(before, differences));