Skip to content

Check if two values are shallowly equal to each other.

License

Notifications You must be signed in to change notification settings

fabiospampinato/are-shallow-equal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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