How to use the deep-equal.js function in deep-equal

To help you get started, we’ve selected a few deep-equal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github KanoComputing / make-art / lib / util / object.js View on Github external
export const contains = function (a, b) {
    for (var key in b) {
        if (b.hasOwnProperty(key)) {
            if (!deepEqual(a[key], b[key])) {
                return false;
            }
        }
    }

    return true;
};

deep-equal

node's assert.deepEqual algorithm

MIT
Latest version published 1 year ago

Package Health Score

73 / 100
Full package analysis