Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.92 KB

README.md

File metadata and controls

46 lines (36 loc) · 1.92 KB

underskore

GitHub version NPM Version Coverage Status

Deps Dev Deps Peer Deps

NPM Downloads GitHub stars GitHub forks GitHub issues

Underscore.js and a little more

  • delta _.delta(object, reference) Returns an object with the values from object that are different from the corresponding values in reference.

    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. :)