Skip to content

v1.0.1

Choose a tag to compare

@observ33r observ33r released this 21 Jul 05:18
· 11 commits to main since this release

Features

  • Strict deep structural equality for JSON-compatible values:
    • number, string, boolean, null
    • nested arrays and plain objects
  • Runtime-optimized comparison:
    • Tailored branch orderings for V8 and JavaScriptCore
  • Tiny output (~2.5 kB minified)
  • Zero dependencies
  • Fully type-safe with JSONCmpValue union type

Benchmarked against

  • lodash.isEqual
  • fast-equals
  • dequal/lite
  • native JSON.stringify fallback
  • Node’s built-in isDeepStrictEqual

See benchmark for full results.

Environment support

  • Node.js ≥ 18
  • Modern browsers
  • Cloudflare Workers
  • Deno
  • Bun