Replacements for deep-equal
dequal
dequal
has the same simple API as deep equal.
Example:
ts
import equal from 'deep-equal'
import dequal from 'dequal'
const a = { foo: 'bar' }
const b = { foo: 'bar' }
equal(a, b) // true
dequal(a, b) // true
fast-deep-equal
fast-deep-equal
again has the same API shape.
Example:
ts
import deepEqual from 'deep-equal'
import fastDeepEqual from 'fast-deep-equal'
const a = { foo: 'bar' }
const b = { foo: 'bar' }
deepEqual(a, b) // true
fastDeepEqual(a, b) // true
NOTE
This library has a separate entrypoint for supporting Maps, Sets, etc. You can use fast-deep-equal/es6
to support those types.