deep-compare
v0.0.5
Published
Deep comparison of objects in JavaScript
Downloads
1,004
Readme
deep-compare
Deep comparison of objects in JavaScript
Install
$ npm install --save deep-compare
Usage
var deepCompare = require('deep-compare');
deepCompare({name: 'Dang Thanh'}, {name: 'Dang Thanh'});
//=> true
deepCompare({city: 'Ha Noi', population: 7500000}, {city: 'Ho Chi Minh', population: 8000000});
//=> false
API
deepCompare(o1, o2)
o1
Type: Objects
The object is first.
o2
Type: Objects
The object is second.
License
MIT © Dang Van Thanh