Socket
Book a DemoInstallSign in
Socket

deep-is

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-is

node's assert.deepEqual algorithm except for NaN being equal to NaN

0.1.4
latest
Source
npmnpm
Version published
Weekly downloads
47M
-18.7%
Maintainers
1
Weekly downloads
 
Created

What is deep-is?

The deep-is npm package provides a utility function for performing deep equality checks between two values. It can be used to determine if two objects, arrays, or other nested structures have the same content, regardless of whether they are the same reference in memory.

What are deep-is's main functionalities?

Deep Equality Check

This feature allows you to compare two complex objects or arrays to determine if they are deeply equal, meaning that their structure and values are the same, even if they are different instances in memory.

var deepEqual = require('deep-is');
console.log(deepEqual({ a: 1, b: { c: 1 } }, { a: 1, b: { c: 1 } })); // true
console.log(deepEqual([1, 2, [3, 4]], [1, 2, [3, 4]])); // true
console.log(deepEqual({ a: 1, b: { c: 1 } }, { a: 1, b: { c: 2 } })); // false

Other packages similar to deep-is

Keywords

equality

FAQs

Package last updated on 04 Sep 2021

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.