Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

just-compare

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-compare - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

2

package.json
{
"name": "just-compare",
"version": "1.1.8",
"version": "1.1.9",
"description": "compare two collections",

@@ -5,0 +5,0 @@ "main": "index.js",

## just-compare
Part of a [library]('../README.md') of zero-dependency npm modules that do just do one thing.
Part of a [library]('../../README.md') of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for the bloat conscious developer.
```js
primitives: value1 === value2
functions: value1.toString == value2.toString
arrays: if length, sequence and values of properties are identical
objects: if length, names and values of properties are identical
import compare from 'just-compare';
// primitives: value1 === value2
// functions: value1.toString == value2.toString
// arrays: if length, sequence and values of properties are identical
// objects: if length, names and values of properties are identical
compare([[1, [2, 3]], [[1, [2, 3]]); // true

@@ -12,0 +14,0 @@ compare([[1, [2, 3], 4], [[1, [2, 3]]); // false

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