JSPM

@gilbarbara/deep-equal

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1026837
  • Score
    100M100P100Q216160F
  • License MIT

Tiny deep equal comparator

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

npm version CI Maintainability Test Coverage

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