Cloned from https://github.com/stutrek/node-deep-equal, plus my own fixes
Go to file
Jesse D. McDonald 007fae2604 fix for comparing values as objects when one may not be an object 2020-03-15 00:59:09 -05:00
example implementation with an example 2012-02-10 21:35:12 -08:00
test deepEquals comparing nulls seems to break in ie6-8 2012-12-07 20:13:36 -08:00
.travis.yml using travis 2012-05-25 14:01:47 -07:00
README.markdown using testling-ci 2012-11-28 02:35:13 -08:00
bower.json added bower.json 2013-08-01 16:06:03 -04:00
index.js fix for comparing values as objects when one may not be an object 2020-03-15 00:59:09 -05:00
package.json more firefoxes 2012-12-07 20:02:20 -08:00

README.markdown

deep-equal

Node's assert.deepEqual() algorithm as a standalone module.

This module is around 5 times faster than wrapping assert.deepEqual() in a try/catch.

browser support

build status

example

var equal = require('deep-equal');
console.dir([
    equal(
        { a : [ 2, 3 ], b : [ 4 ] },
        { a : [ 2, 3 ], b : [ 4 ] }
    ),
    equal(
        { x : 5, y : [6] },
        { x : 5, y : 6 }
    )
]);

methods

var deepEqual = require('deep-equal')

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-equal

test

With npm do:

npm test

license

MIT. Derived largely from node's assert module.