@gilbarbara/deep-equal
v0.3.1
Published
Tiny deep equal comparator
Downloads
1,938,154
Maintainers
Readme
@gilbarbara/deep-equal
Lightweight deep equal comparator.
Features
- Written in TypeScript
- ESM ready
- Works with Map, Set, and Typed Arrays
- Works with React component (avoid circular references)
Usage
npm i @gilbarbara/deep-equal
import equal from '@gilbarbara/deep-equal';
equal({ a: 1 }, { a: 1 }); // true
Credits
Inspired by fast-deep-equal package. Thanks! ❤️
License
MIT