Package Exports
- @gilbarbara/deep-equal
- @gilbarbara/deep-equal/esm/index.js
- @gilbarbara/deep-equal/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gilbarbara/deep-equal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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-equalimport equal from '@gilbarbara/deep-equal';
equal({ a: 1 }, { a: 1 }); // true
Credits
Inspired by fast-deep-equal package. Thanks! ❤️
License
MIT