check-object-equal
v1.0.2
Published
Check equality of objects and other types
Downloads
8
Readme
check-object-equal
Example
let objectEquals = require('check-object-equal');
console.dir([
objectEquals(
{ a : [ 2, 3 ], b : [ 4 ] },
{ a : [ 2, 3 ], b : [ 4 ] }
),
objectEquals(
{ x : 5, y : [6] },
{ x : 5, y : 6 }
)
]);
methods
let objectEquals = require('check-object-equal');
objectEquals(a, b)
Compare objects a
and b
, returning whether they are equal according to a
recursive equality algorithm.
install
With npm do:
npm install check-object-equal
test
With npm do:
npm test