node-rus-diff
node-rus-diff copied to clipboard
JSON diff
After comparing this structure (I only copy one JSON, the other only differ in dates) the result report that the whole properties subarray is not the same. But there is...
Example: ```javascript const diffs = diff({ x: "y" }, { "a.b": "c", x: "y" }); // {$set: {a.b: "c"}} const result = apply({}, diffs); // {a: {b: "c"}} ``` lib...
```javascript var diff = require('rus-diff').diff var config1 = require('./config1.json') var config2 = require('./config2.json') var a = { bar: [ { bar2: 2, zz: 2 } ] } var b =...
Array of strings, remove first element. diff() When comparing an array of strings with another array of strings and applying the diff I'm getting; $rename source field invalid. {'$rename': {'Category:1':'Category:0'}}