MCPcopy Create free account
hub / github.com/Starcounter-Jack/JSON-Patch / compare

Function compare

commonjs/duplex.js:175–180  ·  view source on GitHub ↗

* Create an array of patches from the differences in two objects

(tree1, tree2, invertible)

Source from the content-addressed store, hash-verified

173 * Create an array of patches from the differences in two objects
174 */
175function compare(tree1, tree2, invertible) {
176 if (invertible === void 0) { invertible = false; }
177 var patches = [];
178 _generate(tree1, tree2, patches, '', invertible);
179 return patches;
180}
181exports.compare = compare;

Callers

nothing calls this directly

Calls 1

_generateFunction · 0.70

Tested by

no test coverage detected