A javascript library for working with objects
Deeply compares two items.
Param | Type | Description |
---|---|---|
item1 | unknown |
The first item to compare. |
item2 | unknown |
The second item to compare. |
Example
import { deepEqual } from 'object-agent';
deepEqual(null, undefined);
// => false
const item1 = {
a: ['b']
}
const item2 = {
a: ['c']
}
deepEqual(item1, item2);
// => false