A JavaScript function to compare two objects (or values).
This function returns information of fields with different values (and diff type).
Install with npm:
$ npm install --save ts-diff
diff(1, 2) // MOD
diff({a:1}, {a:2, b:1}) // a: MOD, b: NEW
diff(1, undefined) // READY
- NEW
- MOD
- DEL
- READY