GitHunt
GI

gilbarbara/deep-equal

Lightweight deep equal comparator

@gilbarbara/deep-equal

npm version CI Quality Gate Status

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

Languages

TypeScript98.1%JavaScript1.2%Shell0.7%

Contributors

MIT License
Created March 6, 2022
Updated February 4, 2026
gilbarbara/deep-equal | GitHunt