Check two values for deep equality
$ npm install @f/deep-equal
var deepEqual = require('@f/deep-equal')
deepEqual({a: 1, b: [1, 2]}, {a: 1, b: [1, 2]}) // true
deepEqual({a: 1, b: [1, 2]}, {a: 1, b: [1, 2, 3]}) // false
a
- Value to compare againstb
b
- Value to compare againsta
Returns: Boolean indicating whether or not a
is the same as b
.
MIT