Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via pnpm

deep-equal 2.2.3

node's assert.deepEqual algorithm
Package summary
Share
0
issues
1
license
50
MIT
Package created
11 Feb 2012
Version published
9 Nov 2023
Maintainers
1
Total deps
50
Direct deps
18
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
50 Packages, Including:
array-buffer-byte-length@1.0.1
available-typed-arrays@1.0.7
call-bind@1.0.7
deep-equal@2.2.3
define-data-property@1.1.4
define-properties@1.2.1
es-define-property@1.0.0
es-errors@1.3.0
es-get-iterator@1.1.3
for-each@0.3.3
function-bind@1.1.2
functions-have-names@1.2.3
get-intrinsic@1.2.4
gopd@1.0.1
has-bigints@1.0.2
has-property-descriptors@1.0.2
has-proto@1.0.3
has-symbols@1.0.3
has-tostringtag@1.0.2
hasown@2.0.2
internal-slot@1.0.7
is-arguments@1.1.1
is-array-buffer@3.0.4
is-bigint@1.0.4
is-boolean-object@1.1.2
is-callable@1.2.7
is-date-object@1.0.5
is-map@2.0.3
is-number-object@1.0.7
is-regex@1.1.4
is-set@2.0.3
is-shared-array-buffer@1.0.3
is-string@1.0.7
is-symbol@1.0.4
is-weakmap@2.0.2
is-weakset@2.0.3
isarray@2.0.5
object-inspect@1.13.1
object-is@1.1.6
object-keys@1.1.1
object.assign@4.1.5
possible-typed-array-names@1.0.0
regexp.prototype.flags@1.5.2
set-function-length@1.2.2
set-function-name@2.0.2
side-channel@1.0.6
stop-iteration-iterator@1.0.0
which-boxed-primitive@1.0.2
which-collection@1.0.2
which-typed-array@1.1.15
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

18
All Dependencies CSV
β“˜ This is a list of deep-equal 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
array-buffer-byte-length1.0.15.32 kBMIT
prod
call-bind1.0.721.6 kBMIT
prod
es-get-iterator1.1.310.57 kBMIT
prod
get-intrinsic1.2.412.21 kBMIT
prod
is-arguments1.1.19.64 kBMIT
prod
is-array-buffer3.0.46.71 kBMIT
prod
is-date-object1.0.57.32 kBMIT
prod
is-regex1.1.410.31 kBMIT
prod
is-shared-array-buffer1.0.318.27 kBMIT
prod
isarray2.0.51.82 kBMIT
prod
object-is1.1.626.39 kBMIT
prod
object-keys1.1.17.5 kBMIT
prod
object.assign4.1.518.68 kBMIT
prod
regexp.prototype.flags1.5.239.41 kBMIT
prod
side-channel1.0.622.7 kBMIT
prod
which-boxed-primitive1.0.25.54 kBMIT
prod
which-collection1.0.219.59 kBMIT
prod
which-typed-array1.1.1539.75 kBMIT
prod

Visualizations

Frequently Asked Questions

What does deep-equal do?

The "deep-equal" npm package acts as a standalone module for Node's assert.deepEqual() algorithm. With the advantage of being around 46 times faster than enclosing assert.deepEqual() in a try/catch, this package provides an efficient method to compare objects using a recursive equality algorithm.

How do you use deep-equal?

Deep-equal can be easily incorporated into your JavaScript projects. First, you need to install the npm package using the following command:

npm install deep-equal

Once installed, you can require it in your JavaScript file like so:

var deepEqual = require('deep-equal')

To use the function, simply pass the objects you want to compare as arguments:

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 })
]);

This will return whether the objects a and b are equal according to the deep equality algorithm. If opts.strict is set to true, the function opts for strict equality (===) when comparing leaf nodes. By default, it uses coercive equality (==), similar to how assert.deepEqual() operates.

Where are the deep-equal docs?

You can find the comprehensive documentation for deep-equal on its npm package page. The page provides additional details on how to install and use the package, as well as information about version updates, download statistics, and more. Deep-equal's Github repository also contains useful information and allows users to contribute to the development and improvement of the package.