How to deep compare two objects
Call equal(a, b). It walks both values and compares own keys and values, in any key order. A missing key and a key set to undefined are different.
import { equal } from 'deepkoi';
equal({ a: [1, { b: 2 }] }, { a: [1, { b: 2 }] });
// true
equal({ a: 1 }, { a: 1, b: undefined });
// false: b is missing on the left