underskore
Underscore.js and a little more
-
delta
_.delta(object, reference)
Returns an object with the values fromobject
that are different from the corresponding values inreference
.var reference = a: 1 b: 2 c: 2object = a: 2 b: 1 c: 2;_;a: 2 b: 1
After installing dev dependencies, you can run tests with npm test
and generate coverage reports with npm run coverage
.
Feel free to fork, extend and contribute. :)