Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 2, 2024 via pnpm

deep-equal 1.0.1

node's assert.deepEqual algorithm
Package summary
Share
0
issues
1
license
1
MIT
Package created
11 Feb 2012
Version published
29 Aug 2015
Maintainers
1
Total deps
1
Direct deps
0
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
1 Packages, Including:
deep-equal@1.0.1
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

0
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

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.