Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gilbarbara/deep-equal
Lightweight deep equal comparator
https://github.com/gilbarbara/deep-equal
deep-equal equal equality lightweight typescript
Last synced: 2 months ago
JSON representation
Lightweight deep equal comparator
- Host: GitHub
- URL: https://github.com/gilbarbara/deep-equal
- Owner: gilbarbara
- License: mit
- Created: 2022-03-06T05:19:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T21:19:03.000Z (about 1 year ago)
- Last Synced: 2024-10-14T18:51:44.001Z (3 months ago)
- Topics: deep-equal, equal, equality, lightweight, typescript
- Language: TypeScript
- Homepage:
- Size: 961 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @gilbarbara/deep-equal
[![npm version](https://badge.fury.io/js/%40gilbarbara%2Fdeep-equal.svg)](https://badge.fury.io/js/%40gilbarbara%2Fdeep-equal) [![CI](https://github.com/gilbarbara/deep-equal/actions/workflows/main.yml/badge.svg)](https://github.com/gilbarbara/deep-equal/actions/workflows/main.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=gilbarbara_deep-equal&metric=alert_status)](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