shallow-same

1.0.10 • Public • Published

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

Package Sidebar

Install

npm i shallow-same

Weekly Downloads

3

Version

1.0.10

License

MIT

Unpacked Size

3.15 kB

Total Files

4

Last publish

Collaborators

  • shoaib-amin