deep-compare

Deep comparison of objects in JavaScript

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
deep-compare
200.0.56 years ago6 years agoMinified + gzip package size for deep-compare in KB

Readme

deep-compare Build Status
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