Socket
Socket
Sign inDemoInstall

are-deeply-equal

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    are-deeply-equal

Check if two values are deeply equal to each other.


Version published
Weekly downloads
18
increased by50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Are Deeply Equal

Check if two values are deeply equal to each other.

It supports comparing primitives, Array, Map, Set, Date, RegExp, ArrayBuffer, DataView, Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, BigInt64Array, BigUint64Array, Promise, WeakMap, WeakSet, Node, plain objects, objects with a custom valueOf function, and other classes (which are treated like plain objects).

Install

npm install --save are-deeply-equal

Usage

import areDeeplyEqual from 'are-deeply-equal';

areDeeplyEqual ( [123, { value: 'foo' }], [123, { value: 'foo' }] ); // => true
areDeeplyEqual ( [true], [false] ); // => false

License

MIT © Fabio Spampinato

Keywords

FAQs

Last updated on 04 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc