0.0.2 • Published 3 years ago
ts-diff v0.0.2
ts-diff
Definition
A JavaScript function to compare two objects (or values).
This function returns information of fields with different values (and diff type).
Install
Install with npm:
$ npm install --save ts-diff
How to use
diff(1, 2) // MOD
diff({a:1}, {a:2, b:1}) // a: MOD, b: NEW
diff(1, undefined) // READY
Diff Types
- NEW
- MOD
- DEL
- READY