underskore
v0.0.12
Published
[Underscore.js](http://underscorejs.org/) and a little more
Downloads
39
Maintainers
Readme
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: 2}, object = {a: 2, b: 1, c: 2}; _.delta(object, reference); => {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. :)