Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.89 KB

deepEqual.md

File metadata and controls

56 lines (45 loc) · 1.89 KB

Object Agent

A javascript library for working with objects

npm build coverage deps size vulnerabilities license


deepEqual(item1, item2) ⇒ boolean

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