A javascript library for working with objects
Shallow compares two or more items. All items are compared with SameValue equality except Dates and RegExps which compare their values with SameValue equality and Objects and Arrays which compare key lengths.
Type | Description |
---|---|
* , Array |
Can be an array of items or multiple args of items. |
Example
import { isEqual } from 'object-agent';
isEqual(null, undefined);
// => false
isEqual('a', 'a', 'a');
// => true
isEqual('a', 'a', 'a', null);
// => false