Socket
Socket
Sign inDemoInstall

nested-equal

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nested-equal - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "nested-equal",
"version": "1.0.0",
"version": "1.0.1",
"description": "A tiny (~200B) and fast nested/deep equality utility",

@@ -5,0 +5,0 @@ "scripts": {

@@ -5,4 +5,4 @@ # nested-equal ![Check](https://github.com/alizeait/nested-equal/workflows/Check/badge.svg) ![Coverage](https://img.shields.io/codecov/c/github/alizeait/nested-equal)

Takes 2 values and returns a boolean deciding if they are equal by traversing recursively.
Supports Objects, Arrays, numbers, strings, null, undefined, NaN, functions. Other types like Map, Set, Date use reference equality instead of value equality.
Takes 2 values and returns a boolean indicating if they are equal or not by traversing recursively.
Supports `Objects`, `Arrays`, `Numbers`, `Strings`, `null`, `undefined`, `NaN`, `Functions`. Other types like `Map`, `Set`, `Date` and others use reference equality instead of value equality.

@@ -42,3 +42,3 @@ Key order within objects _does not_ matter while value order within arrays _does_ matter.

Claiming a library is fast without looking into the data structure is naive at best, since the data structure
largely impacts performance as no algorithm can handle all the different data structures.
largely impacts performance as no algorithm can handle all the different data structures. Hence a couple of benchmarks were made with some different data structures to compare it to other popular libararies.

@@ -45,0 +45,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc