1.0.10 • Published 2 years ago

shallow-same v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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