object-equal
v1.0.0
Published
tests wether two objects are equal (shallow).
Downloads
232
Readme
object-equal
simple function that tests, if two objects are equal (shallow).
install
npm install object-equal
usage
var assert = require('assert');
var equals = require('object-equal');
assert(equals({a:1, b:'nada'}, {b:'nada', a:1}));
assert(!equals({a:1, b:'nada'}, {b:'nada', a:2}));
assert(!equals({a:1, b:''}, {b:'nada', a:1}));
assert(!equals({a:1, b:'nada'}, {a:1}));
assert(!equals({a:1}, {a:1, b:'nada'}));
test
npm test
license
MIT