Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

deep-equal

Package Overview
Dependencies
15
Maintainers
2
Versions
16
Issues
File Explorer

Advanced tools

deep-equal

node's assert.deepEqual algorithm

    2.0.5latest

Version published
Maintainers
2
Weekly downloads
13,778,967
decreased by-3.15%

Weekly downloads

Changelog

Source

v2.0.5 - 2020-12-01

Commits

Readme

Source

deep-equal

Node's assert.deepEqual() algorithm as a standalone module.

This module is around 46 times faster than wrapping assert.deepEqual() in a try/catch.

build status

example

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

methods

var deepEqual = require('deep-equal')

deepEqual(a, b, opts)

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.

install

With npm do:

npm install deep-equal

test

With npm do:

npm test

Keywords

FAQs

What is deep-equal?

node's assert.deepEqual algorithm

Is deep-equal popular?

The npm package deep-equal receives a total of 11,586,314 weekly downloads. As such, deep-equal popularity was classified as popular.

Is deep-equal well maintained?

We found that deep-equal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 2 open source maintainers collaborating on the project.

Last updated on 01 Dec 2020
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc