@longlast/equals 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +29 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # `@longlast/equals`
2
+
3
+ Deeply compares objects.
4
+
5
+ ## Install
6
+
7
+ Choose your favorite package manager:
8
+
9
+ ```bash
10
+ npm add @longlast/equals
11
+ pnpm add @longlast/equals
12
+ yarn add @longlast/equals
13
+ ```
14
+
15
+ ## Use
16
+
17
+ ```ts
18
+ import {equals} from "@longlast/equals";
19
+
20
+ equals(
21
+ [1, 2, {buckleMy: "shoe"}],
22
+ [1, 2, {buckleMy: "shoe"}],
23
+ ); // => true
24
+
25
+ equals(
26
+ [1, 2, {buckleMy: "shoe"}],
27
+ [3, 4, {openThe: "door"}],
28
+ ); // => false
29
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longlast/equals",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Deeply compares objects",
5
5
  "license": "MIT",
6
6
  "author": "Ben Christel (https://benchristel.com/)",