Lightweight deep equal comparator.
- Written in TypeScript
- ESM ready
- Works with Map, Set, and Typed Arrays
- Works with React component (avoid circular references)
npm i @gilbarbara/deep-equal
import equal from '@gilbarbara/deep-equal';
equal({ a: 1 }, { a: 1 }); // true
Inspired by fast-deep-equal package. Thanks! ❤️
MIT