Skip to content

Lightweight deep equal comparator

License

Notifications You must be signed in to change notification settings

gilbarbara/deep-equal

Repository files navigation

@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