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
npm install deep-equal
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
778 Stars
228 Commits
109 Forks
18 Watching
4 Branches
16 Contributors
Updated on 15 Oct 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-9.5%
3,897,434
Compared to previous day
Last week
1.4%
22,719,386
Compared to previous week
Last month
1.2%
95,983,659
Compared to previous month
Last year
5.6%
1,059,057,677
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 binaries found in the repo
Reason
no dangerous workflow patterns detected
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
dependency not pinned by hash detected -- score normalized to 0
Details
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
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-25
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