Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tolumide-ng/not-same
npm package that checks for object equality in javascript
https://github.com/tolumide-ng/not-same
Last synced: about 1 month ago
JSON representation
npm package that checks for object equality in javascript
- Host: GitHub
- URL: https://github.com/tolumide-ng/not-same
- Owner: tolumide-ng
- Created: 2021-05-16T11:16:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-14T07:59:08.000Z (over 2 years ago)
- Last Synced: 2024-11-10T02:50:58.223Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## not-same
- Check object equality in javascript
- Inspired by the absence of deep equality check for objects in javascript```
const isObjSame = require("is-obj-same");const objectA = {a: "aa", b: "bb", c: ["cd": {e: "ee"}, "dc": {f: "ff", g: ["a", "b", "c", "d"]}] }
const objectA = {a: "aa", b: "bb", c: ["cd": {e: "ee"}, "dc": {f: "ff"}, g: ["a", "c", "b", "D"]] }console.log(isObjSame(objectA, objectB)); // false
```
### Install
```
npm install not-same
```## NB:
- I can't fully guarantee the library, since I haven't tested all use-cases, but it works to an extent. (I intend to do this eventually, once I am free)