@gilbarbara/deep-equal
Version:
Tiny deep equal comparator
33 lines (20 loc) • 966 B
Markdown
# @gilbarbara/deep-equal
[](https://badge.fury.io/js/%40gilbarbara%2Fdeep-equal) [](https://github.com/gilbarbara/deep-equal/actions/workflows/main.yml) [](https://sonarcloud.io/summary/new_code?id=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
```shell
npm i @gilbarbara/deep-equal
```
```typescript
import equal from '@gilbarbara/deep-equal';
equal({ a: 1 }, { a: 1 }); // true
```
## Credits
Inspired by [fast-deep-equal](https://github.com/epoberezkin/fast-deep-equal) package. Thanks! ❤️
## License
MIT