Gathering detailed insights and metrics for deep-equal
Gathering detailed insights and metrics for deep-equal
Gathering detailed insights and metrics for deep-equal
Gathering detailed insights and metrics for deep-equal
fast-deep-equal
Fast deep equal
deep-is
node's assert.deepEqual algorithm except for NaN being equal to NaN
deep-eql
Improved deep equality testing for Node.js and the browser.
react-fast-compare
Fastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison.
npm install deep-equal
Typescript
Module System
Min. Node Version
Node Version
NPM Version
96.1
Supply Chain
91.2
Quality
75.6
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
5,101,194,610
Last Day
982,528
Last Week
20,200,103
Last Month
87,806,227
Last Year
1,062,930,927
MIT License
793 Stars
228 Commits
108 Forks
17 Watchers
4 Branches
16 Contributors
Updated on Jun 28, 2025
Minified
Minified + Gzipped
Latest Version
2.2.3
Package Id
deep-equal@2.2.3
Unpacked Size
88.23 kB
Size
22.45 kB
File Count
12
NPM Version
10.2.0
Node Version
21.1.0
Published on
Nov 09, 2023
Cumulative downloads
Total Downloads
Last Day
-8.9%
982,528
Compared to previous day
Last Week
-8.3%
20,200,103
Compared to previous week
Last Month
0.1%
87,806,227
Compared to previous month
Last Year
3.2%
1,062,930,927
Compared to previous year
18
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.
1var equal = require('deep-equal'); 2console.dir([ 3 equal( 4 { a : [ 2, 3 ], b : [ 4 ] }, 5 { a : [ 2, 3 ], b : [ 4 ] } 6 ), 7 equal( 8 { x : 5, y : [6] }, 9 { x : 5, y : 6 } 10 ) 11]);
1var deepEqual = require('deep-equal')
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.
With npm do:
npm install deep-equal
With npm do:
npm test
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no SAST tool detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More