just-compare
Advanced tools
Comparing version 1.1.8 to 1.1.9
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3194
21