are-shallow-equal
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Are Shallow Equal

Check if two values are shallowly equal to each other.

Install

npm install --save are-shallow-equal

Usage

import areShallowEqual from 'are-shallow-equal';

areShallowEqual ( 123, 123 ); // true
areShallowEqual ( { foo: 1 }, { foo: 1 } ); // true
areShallowEqual ( [1, 2, 3], [1, 2, 3] ); // true

License

MIT © Fabio Spampinato

Readme

Keywords

Package Sidebar

Install

npm i are-shallow-equal

Weekly Downloads

620

Version

2.0.1

License

none

Unpacked Size

4.75 kB

Total Files

12

Last publish

Collaborators

  • fabiospampinato