Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

deep-equal

Package Overview
Dependencies
17
Maintainers
1
Versions
18
Issues
File Explorer

Advanced tools

deep-equal

node's assert.deepEqual algorithm

    2.2.0latest
    Github

Version published
Maintainers
1
Weekly downloads
19,395,885
increased by10.75%

Weekly downloads

Changelog

Source

v2.2.0 - 2023-01-05

Commits

  • [New] add support for SharedArrayBuffer 0ef51c7
  • [Refactor] use is-array-buffer package 0360ee1
  • [Fix] whichTypedArray can return false in both cases df3e3c4
  • [Dev Deps] update aud, object.getownpropertydescriptors 6d62ea4
  • [Dev Deps] update @ljharb/eslint-config 15aab59
  • [Deps] update which-typed-array 8dfce27
  • [eslint] remove .eslintignore af46773

Readme

Source

deep-equal Version Badge

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

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

github actions coverage dependency status dev dependency status License Downloads

npm badge

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 18,482,861 weekly downloads. As such, deep-equal popularity was classified as popular.

Is deep-equal well maintained?

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

Last updated on 05 Jan 2023

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc