Deep comparison of objects in JavaScript
$ npm install --save deep-compare
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
Type: Objects
The object is first.
Type: Objects
The object is second.
MIT © Dang Van Thanh