JSPM

are-shallow-equal

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1242
  • Score
    100M100P100Q115733F

Check if two values are shallowly equal to each other.

Package Exports

  • are-shallow-equal

Readme

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