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,243,585,660
Last Day
3,694,159
Last Week
22,815,009
Last Month
107,055,538
Last Year
1,089,638,718
MIT License
792 Stars
228 Commits
107 Forks
17 Watchers
4 Branches
16 Contributors
Updated on Jul 09, 2025
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
24.5%
3,694,159
Compared to previous day
Last Week
-2.6%
22,815,009
Compared to previous week
Last Month
13.7%
107,055,538
Compared to previous month
Last Year
5.9%
1,089,638,718
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
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14
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