deep-equal2
Node's assert.deepEqual() algorithm
with constructor check
This module is around 5 times faster
than wrapping assert.deepEqual()
in a try/catch
.
example
var equal = ;consoledir;
example - with constructor check
var equal = ;consoledir;
methods
var deepEqual = require('deep-equal2')
deepEqual(a, b)
Compare objects a
and b
, returning whether they are equal according to a
recursive equality algorithm.
install
With npm do:
npm install deep-equal2
test
With npm do:
npm test
license
MIT. Derived largely from node's assert module.