shallow-same
v1.0.10
Published
A light-weight JavaScript utility to compare numbers, strings, arrays, and objects.
Downloads
23
Maintainers
Readme
A light-weight JavaScript utility to compare numbers, strings, arrays, and objects.
Installation
$ yarn add shallow-same
$ npm install shallow-same
Usage
const ss = require('shallow-same');
// import ss from 'shallow-same';
const object1 = { hello: 'world', shoaib: 'amin' };
const object3 = { shoaib: 'amin', hello: 'world' };
object1 === object3;
// → false
ss(object1, object3);
// → true
Please refer to the complete documentation in my GitHub README