2.2.3 • Published 5 months ago

deep-equal v2.2.3

Weekly downloads
12,441,650
License
MIT
Repository
github
Last release
5 months ago

deep-equal Version Badge

Node's assert.deepEqual() algorithm as a standalone module, that also works in browser environments.

It mirrors the robustness of node's own assert.deepEqual and is robust against later builtin modification.

github actions coverage License Downloads

npm badge

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, opts)

Compare objects a and b, returning whether they are equal according to a recursive equality algorithm.

If opts.strict is true, use strict equality (===) to compare leaf nodes. The default is to use coercive equality (==) because that's how assert.deepEqual() works by default.

install

With npm do:

npm install deep-equal

test

With npm do:

npm test
bonjourfmlxcustomcomponent@jetbrains/ring-ui@react-libra/core@sprucelabs/test-utilscomponennentt@pangolindex/components@knapsack/appnomad-media-sdk@labdigital/commercetools-node-mockvuedragdropuploadimagesagape-form-builder@iharob/graphql-mesh-openapi@nia3208/foreveramerican-golf-kioskquill-unvphwx-fontkit@elk/jsonbarjslaji-frontprojet-gl02tweet-analysis@rock-kit/ui-formsmicrocms-quill@braid/nuxt-cmsaqua-cmdreact-helmet-ie8bob-wallet@netinsight/sye-ad-insertionloki-json-rules-engine-simplified@giwisoft/warpviewpresentiwarpview-nghaxroomiegeneric-redis-cacheflbusinessflbusiness1electron-bonjourcustom-ory-editor-corepapiea-engineoneview-guiian-client@jakeblaxon-graphql-mesh/openapi@ultradent/ultradent-ecommerce@sdoubey/rxdbreact-treebeard-fromrepoyasintz-api-callsshufflestack@webuildbots/block-obj-builder@mahdi-esbati/react-mapbox-glfolio-leafletbitpolisjsonegramjsyounitedjsvelarisjschromecast-dbuspanel-maluko-testreact-material-ui-keyboard-caibb-chat@daysmart/frankenstack-apipatent-editorform-render-enredux-form-5@toptal/staff-portal@frxf/frxfhookstores@fluido/react-snackbar-managerreact-native-nodeifynodeify-rn@texttree/demo-bsa-reference-rcl@larsthorup/ble-mock-recorder@coder-mike/micro-vm@carrybible/stream-chat-react-native-core@churnally/flow-chart@marty-editor/corequill-delta-tableawesome-validator@candlefw/testsuperchargedustack-halomongo-airtablemetadata-tools-test-haykhomebridge-xiaomi-roborock-vacuum-switch@l1nyanm1ng/react-picture-viewertemp-redux-formcthpb-plugin-socialls-tester@botui/chat-controllermock-officexwcjs@djaciel/react-componentscodewing-uicybex-game-addon@cybertec/ory-editor-core@cybertec/react-page-core@david-boydell/cypress-layoutdclworld-ui@screenplayer/fontkitlevibestliblevibestlib2
1.1.2

5 months ago

2.2.3

5 months ago

2.2.2

9 months ago

2.2.1

12 months ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.5

3 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.2.2

9 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

11 years ago

0.0.0

12 years ago