deep-compare

0.0.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i deep-compare

Weekly Downloads

298

Version

0.0.5

License

MIT

Last publish

Collaborators

  • dangvanthanh