deep-equal
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/deep-equal package

    0.0.0 • Public • Published

    deep-equal

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

    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.

    Install

    npm i deep-equal@0.0.0

    Version

    0.0.0

    License

    MIT/X11

    Last publish

    Collaborators

    • substack
    • ljharb