{"name":"fast-equals","version":"6.0.0","keywords":["fast","equal","equals","deep-equal","equivalent"],"author":{"url":"https://www.planttheidea.com/","name":"Tony Quetano","email":"tony.quetano@planttheidea.com"},"license":"MIT","_id":"fast-equals@6.0.0","maintainers":[{"name":"planttheidea","email":"tony.quetano@planttheidea.com"}],"homepage":"https://github.com/planttheidea/fast-equals#readme","bugs":{"url":"https://github.com/planttheidea/fast-equals/issues"},"dist":{"shasum":"719dedd2e126668b857b5e9d24e112e4acb2649a","tarball":"http://registry-npm.ywwl.com/fast-equals/download/fast-equals-6.0.0.tgz","fileCount":8,"integrity":"sha512-PFhhIGgdM79r5Uztdj9Zb6Tt1zKafqVfdMGwVca1z5z6fbX7DmsySSuJd8HiP6I1j505DCS83cLxo5rmSNeVEA==","signatures":[{"sig":"MEUCIAkc1O+Z4rfxV3mJNPLpEwhVdbCM3GVL1PTunLp75blBAiEAyIHXXyjZKQ6TYsYA8u/7keQzcuUPGXcUTwVZt8HFj7s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":102951,"size":19435,"noattachment":false,"key":"/fast-equals/-/fast-equals-6.0.0.tgz"},"main":"./dist/cjs/index.cjs","type":"module","types":"./index.d.ts","module":"./dist/es/index.mjs","engines":{"node":">=6.0.0"},"exports":{".":{"import":{"types":"./dist/es/index.d.mts","default":"./dist/es/index.mjs"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}}},"gitHead":"eafa03796b26ab3f15b8bb1a606287dd11d29341","scripts":{"dev":"vite --config=config/vite.config.ts","lint":"eslint --max-warnings=0","test":"vitest run --config=config/vitest.config.ts","build":"npm run clean && npm run build:dist","clean":"rm -rf dist","start":"npm run dev","format":"prettier . --log-level=warn --write","clean:es":"rm -rf dist/es","lint:fix":"npm run lint -- --fix","benchmark":"npm run build && node benchmark/index.js","clean:cjs":"rm -rf dist/cjs","typecheck":"tsc --noEmit","build:dist":"NODE_ENV=production rollup -c config/rollup.config.js","release:rc":"release-it --config=config/release-it/rc.json","format:check":"prettier . --log-level=warn --check","release:beta":"release-it --config=config/release-it/beta.json","release:alpha":"release-it --config=config/release-it/alpha.json","release:stable":"release-it --config=config/release-it/stable.json","release:scripts":"npm run format:check && npm run typecheck && npm run lint && npm run test && npm run build"},"_npmUser":{"name":"planttheidea","email":"tony.quetano@planttheidea.com"},"repository":{"url":"git+https://github.com/planttheidea/fast-equals.git","type":"git"},"_npmVersion":"11.6.2","description":"A blazing-fast equality comparison utility for a variety of use-cases","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.0","react":"^19.2.3","dequal":"^2.0.3","eslint":"^9.39.2","lodash":"^4.17.21","rollup":"^4.53.5","vitest":"^4.0.16","deep-eql":"^5.0.2","prettier":"^3.7.4","fast-glob":"^3.3.3","react-dom":"^19.2.3","tinybench":"^6.0.0","cli-table3":"^0.6.5","deep-equal":"^2.2.3","nano-equal":"^2.0.2","release-it":"^19.1.0","typescript":"^5.9.3","underscore":"^1.13.7","@types/node":"^24.10.4","@types/ramda":"^0.31.1","@types/react":"^19.2.7","@types/lodash":"^4.17.21","decircularize":"^1.0.0","fast-deep-equal":"^3.1.3","@types/react-dom":"^19.2.3","typescript-eslint":"^8.50.0","react-fast-compare":"^3.2.2","@vitest/coverage-v8":"^4.0.16","shallow-equal-fuzzy":"^0.0.2","eslint-plugin-import":"^2.32.0","@planttheidea/build-tools":"^2.0.0","@typescript-eslint/parser":"^8.50.0","eslint-friendly-formatter":"^4.0.1","@typescript-eslint/eslint-plugin":"^8.50.0"},"_npmOperationalInternal":{"tmp":"tmp/fast-equals_6.0.0_1766135775778_0.034656491560289826","host":"s3://npm-registry-packages-npm-production"},"readme":"> fast-equals\n\nPerform [blazing fast](#benchmarks) equality comparisons between two objects, while also allowing for flexibility for\nvarious use-cases. It has no dependencies, and is ~2.65kB when minified and gzipped.\n\nThe following types are handled out-of-the-box:\n\n- Plain objects (including `react` elements and `Arguments`)\n- Arrays\n- `ArrayBuffer` / `TypedArray` / `DataView` instances\n- `Date` objects\n- `RegExp` objects\n- `Map` / `Set` iterables\n- `Promise` objects and then-ables\n- `Error` objects, including subclasses and their own properties\n- `URL` objects\n- Primitive wrappers (`new Boolean()` / `new Number()` / `new String()`, and boxed `BigInt`)\n- Custom class instances, including subclasses of native classes\n\nMethods are available for deep, shallow, [`SameValue`](https://262.ecma-international.org/7.0/#sec-samevalue),\n[`SameValueZero`](https://262.ecma-international.org/7.0/#sec-samevaluezero), or\n[strict equality](https://262.ecma-international.org/7.0/#sec-strict-equality-comparison) comparison. In addition, you\ncan opt into support for circular objects, or performing a \"strict\" comparison with unconventional property definition,\nor both. You can also customize any specific type comparison based on your application's use-cases.\n\nBy default, npm should resolve the correct build of the package based on your consumption (ESM vs CommonJS). However, if\nyou want to force use of a specific build, they can be located here:\n\n- ESM => `fast-equals/dist/es/index.mjs`\n- CommonJS => `fast-equals/dist/cjs/index.cjs`\n\nIf you are having any problems, want to request a new feature, or have any questions,\n[please file an issue](https://github.com/planttheidea/fast-equals/issues).\n\n- [Usage](#usage)\n- [Available methods](#available-methods)\n  - [deepEqual](#deepequal)\n    - [Comparing `Map`s](#comparing-maps)\n  - [shallowEqual](#shallowequal)\n  - [sameValueEqual](#samevalueequal)\n  - [sameValueZeroEqual](#samevaluezeroequal)\n  - [strictEqual](#strictequal)\n  - [circularDeepEqual](#circulardeepequal)\n  - [circularShallowEqual](#circularshallowequal)\n  - [strictDeepEqual](#strictdeepequal)\n  - [strictShallowEqual](#strictshallowequal)\n  - [strictCircularDeepEqual](#strictcirculardeepequal)\n  - [strictCircularShallowEqual](#strictcircularshallowequal)\n  - [createCustomEqual](#createcustomequal)\n    - [strictNullPrototypeComparison](#strictnullprototypecomparison)\n    - [getUnsupportedCustomComparator](#getunsupportedcustomcomparator)\n    - [Recipes](#recipes)\n- [Benchmarks](#benchmarks)\n\n## Usage\n\n```ts\nimport { deepEqual } from 'fast-equals';\n\nconsole.log(deepEqual({ foo: 'bar' }, { foo: 'bar' })); // true\n```\n\n## Available methods\n\n### deepEqual\n\nPerforms a deep equality comparison on the two objects passed and returns a boolean representing the value equivalency\nof the objects.\n\n```ts\nimport { deepEqual } from 'fast-equals';\n\nconst objectA = { foo: { bar: 'baz' } };\nconst objectB = { foo: { bar: 'baz' } };\n\nconsole.log(objectA === objectB); // false\nconsole.log(deepEqual(objectA, objectB)); // true\n```\n\n#### Comparing `Map`s\n\n`Map` objects support complex keys (objects, Arrays, etc.), however\n[the spec for key lookups in `Map` are based on `SameValueZero`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#key_equality).\nIf the spec were followed for comparison, the following would always be `false`:\n\n```ts\nconst mapA = new Map([[{ foo: 'bar' }, { baz: 'quz' }]]);\nconst mapB = new Map([[{ foo: 'bar' }, { baz: 'quz' }]]);\n\ndeepEqual(mapA, mapB);\n```\n\nTo support true deep equality of all contents, `fast-equals` will perform a deep equality comparison for key and value\npairs. Therefore, the above would be `true`.\n\n### shallowEqual\n\nPerforms a shallow equality comparison on the two objects passed and returns a boolean representing the value\nequivalency of the objects.\n\n```ts\nimport { shallowEqual } from 'fast-equals';\n\nconst nestedObject = { bar: 'baz' };\n\nconst objectA = { foo: nestedObject };\nconst objectB = { foo: nestedObject };\nconst objectC = { foo: { bar: 'baz' } };\n\nconsole.log(objectA === objectB); // false\nconsole.log(shallowEqual(objectA, objectB)); // true\nconsole.log(shallowEqual(objectA, objectC)); // false\n```\n\n### sameValueEqual\n\nPerforms a [`SameValue`](https://262.ecma-international.org/7.0/#sec-samevalue) comparison on the two objects passed and\nreturns a boolean representing the value equivalency of the objects. In simple terms, this means:\n\n- `+0` and `-0` are not equal\n- `NaN` is equal to `NaN`\n- All other items are based on referential equality (`a === b`)\n\n```ts\nimport { sameValueEqual } from 'fast-equals';\n\nconst mainObject = { foo: NaN, bar: 'baz' };\n\nconst objectA = 'baz';\nconst objectB = NaN;\nconst objectC = { foo: NaN, bar: 'baz' };\n\nconsole.log(sameValueEqual(mainObject.bar, objectA)); // true\nconsole.log(sameValueEqual(mainObject.foo, objectB)); // true\nconsole.log(sameValueEqual(mainObject, objectC)); // false\n```\n\n_**NOTE**: In environments that support\n[`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is),\n`sameValueEqual` is just a re-export of that method._\n\n### sameValueZeroEqual\n\nPerforms a [`SameValueZero`](https://262.ecma-international.org/7.0/#sec-samevaluezero) comparison on the two objects\npassed and returns a boolean representing the value equivalency of the objects. In simple terms, this means:\n\n- `+0` and `-0` are equal\n- `NaN` is equal to `NaN`\n- All other items are based on referential equality (`a === b`)\n\n```ts\nimport { sameValueZeroEqual } from 'fast-equals';\n\nconst mainObject = { foo: NaN, bar: 'baz' };\n\nconst objectA = 'baz';\nconst objectB = NaN;\nconst objectC = { foo: NaN, bar: 'baz' };\n\nconsole.log(sameValueZeroEqual(mainObject.bar, objectA)); // true\nconsole.log(sameValueZeroEqual(mainObject.foo, objectB)); // true\nconsole.log(sameValueZeroEqual(mainObject, objectC)); // false\n```\n\n### strictEqual\n\nPerforms a [Strict Equality](https://262.ecma-international.org/7.0/#sec-strict-equality-comparison) comparison on the\ntwo objects passed and returns a boolean representing the referential equality of the objects. In simple terms, this\nmeans:\n\n- `+0` and `-0` are equal\n- `NaN` is not equal to `NaN`\n- All other items are based on referential equality (`a === b`)\n\n```ts\nimport { strictEqual } from 'fast-equals';\n\nconst mainObject = { foo: NaN, bar: 'baz' };\n\nconst objectA = 'baz';\nconst objectB = NaN;\nconst objectC = { foo: NaN, bar: 'baz' };\n\nconsole.log(strictEqual(mainObject.bar, objectA)); // true\nconsole.log(strictEqual(mainObject.foo, objectB)); // false\nconsole.log(strictEqual(mainObject, objectC)); // false\n```\n\n_**NOTE**: This is mainly a convenience function, such as needing a default functional equality comparator. Naturally,\nit is faster to simply compare `a === b`. :)_\n\n### circularDeepEqual\n\nPerforms the same comparison as `deepEqual` but supports circular objects. It is slower than `deepEqual`, so only use if\nyou know circular objects are present.\n\n```ts\nfunction Circular(value) {\n  this.me = {\n    deeply: {\n      nested: {\n        reference: this,\n      },\n    },\n    value,\n  };\n}\n\nconsole.log(circularDeepEqual(new Circular('foo'), new Circular('foo'))); // true\nconsole.log(circularDeepEqual(new Circular('foo'), new Circular('bar'))); // false\n```\n\nJust as with `deepEqual`, [both keys and values are compared for deep equality](#comparing-maps).\n\n### circularShallowEqual\n\nPerforms the same comparison as `shallowEqual` but supports circular objects. It is slower than `shallowEqual`, so only\nuse if you know circular objects are present.\n\n```ts\nconst array = ['foo'];\n\narray.push(array);\n\nconsole.log(circularShallowEqual(array, ['foo', array])); // true\nconsole.log(circularShallowEqual(array, [array])); // false\n```\n\n### strictDeepEqual\n\nPerforms the same comparison as `deepEqual` but performs a strict comparison of the objects. This includes:\n\n- Checking symbol properties\n- Checking non-enumerable properties in object comparisons\n- Checking full descriptor of properties on the object to match\n- Checking non-index properties on arrays\n- Checking non-key properties on `Map` / `Set` objects\n- Checking own properties on `Date` objects\n\n```ts\nconst array = [{ foo: 'bar' }];\nconst otherArray = [{ foo: 'bar' }];\n\narray.bar = 'baz';\notherArray.bar = 'baz';\n\nconsole.log(strictDeepEqual(array, otherArray)); // true\nconsole.log(strictDeepEqual(array, [{ foo: 'bar' }])); // false\n```\n\n### strictShallowEqual\n\nPerforms the same comparison as `shallowEqual` but performs a strict comparison of the objects. This includes:\n\n- Checking non-enumerable properties in object comparisons\n- Checking full descriptor of properties on the object to match\n- Checking non-index properties on arrays\n- Checking non-key properties on `Map` / `Set` objects\n- Checking own properties on `Date` objects\n\n```ts\nconst array = ['foo'];\nconst otherArray = ['foo'];\n\narray.bar = 'baz';\notherArray.bar = 'baz';\n\nconsole.log(strictShallowEqual(array, otherArray)); // true\nconsole.log(strictShallowEqual(array, ['foo'])); // false\n```\n\n### strictCircularDeepEqual\n\nPerforms the same comparison as `circularDeepEqual` but performs a strict comparison of the objects. This includes:\n\n- Checking `Symbol` properties on the object\n- Checking non-enumerable properties in object comparisons\n- Checking full descriptor of properties on the object to match\n- Checking non-index properties on arrays\n- Checking non-key properties on `Map` / `Set` objects\n- Checking own properties on `Date` objects\n\n```ts\nfunction Circular(value) {\n  this.me = {\n    deeply: {\n      nested: {\n        reference: this,\n      },\n    },\n    value,\n  };\n}\n\nconst first = new Circular('foo');\n\nObject.defineProperty(first, 'bar', {\n  enumerable: false,\n  value: 'baz',\n});\n\nconst second = new Circular('foo');\n\nObject.defineProperty(second, 'bar', {\n  enumerable: false,\n  value: 'baz',\n});\n\nconsole.log(strictCircularDeepEqual(first, second)); // true\nconsole.log(strictCircularDeepEqual(first, new Circular('foo'))); // false\n```\n\n### strictCircularShallowEqual\n\nPerforms the same comparison as `circularShallowEqual` but performs a strict comparison of the objects. This includes:\n\n- Checking non-enumerable properties in object comparisons\n- Checking full descriptor of properties on the object to match\n- Checking non-index properties on arrays\n- Checking non-key properties on `Map` / `Set` objects\n- Checking own properties on `Date` objects\n\n```ts\nconst array = ['foo'];\nconst otherArray = ['foo'];\n\narray.push(array);\notherArray.push(array); // Shallow comparison requires the same nested reference.\n\narray.bar = 'baz';\notherArray.bar = 'baz';\n\nconsole.log(strictCircularShallowEqual(array, otherArray)); // true\nconsole.log(strictCircularShallowEqual(array, ['foo', array])); // false\n```\n\n### createCustomEqual\n\nCreates a custom equality comparator that will be used on nested values in the object. Unlike `deepEqual` and\n`shallowEqual`, this is a factory method that receives the default options used internally, and allows you to override\nthe defaults as needed. This is generally for extreme edge-cases, or supporting legacy environments.\n\nThe signature is as follows:\n\n```ts\ninterface Cache<Key extends object, Value> {\n  delete(key: Key): boolean;\n  get(key: Key): Value | undefined;\n  set(key: Key, value: any): any;\n}\n\ninterface ComparatorConfig<Meta> {\n  areArrayBuffersEqual: EqualityComparator<Meta>;\n  areArraysEqual: EqualityComparator<Meta>;\n  areDataViewsEqual: EqualityComparator<Meta>;\n  areDatesEqual: EqualityComparator<Meta>;\n  areErrorsEqual: EqualityComparator<Meta>;\n  areFunctionsEqual: EqualityComparator<Meta>;\n  areMapsEqual: EqualityComparator<Meta>;\n  areNumbersEqual: EqualityComparator<Meta>;\n  areObjectsEqual: EqualityComparator<Meta>;\n  arePrimitiveWrappersEqual: EqualityComparator<Meta>;\n  areRegExpsEqual: EqualityComparator<Meta>;\n  areSetsEqual: EqualityComparator<Meta>;\n  areTypedArraysEqual: EqualityComparator<Meta>;\n  areUrlsEqual: EqualityComparator<Meta>;\n  getUnsupportedCustomComparator:\n    (<Type>(a: Type, b: Type, state: State<Meta>, tag: string) => EqualityComparator<Meta> | undefined) | undefined;\n  strictNullPrototypeComparison?: boolean;\n}\n\nfunction createCustomEqual<Meta>(options: {\n  circular?: boolean;\n  createCustomConfig?: (defaultConfig: ComparatorConfig<Meta>) => Partial<ComparatorConfig<Meta>>;\n  createInternalComparator?: (\n    compare: <A, B>(a: A, b: B, state: State<Meta>) => boolean,\n  ) => (a: any, b: any, indexOrKeyA: any, indexOrKeyB: any, parentA: any, parentB: any, state: State<Meta>) => boolean;\n  createState?: () => { cache?: Cache; meta?: Meta };\n  strict?: boolean;\n  strictNullPrototypeComparison?: boolean;\n}): <A, B>(a: A, b: B) => boolean;\n```\n\nCreate a custom equality comparator. This allows complete control over building a bespoke equality method, in case your\nuse-case requires a higher degree of performance, legacy environment support, or any other non-standard usage. The\n[recipes](#recipes) provide examples of use in different use-cases, but if you have a specific goal in mind and would\nlike assistance feel free to [file an issue](https://github.com/planttheidea/fast-equals/issues).\n\n_**NOTE**: `Map` implementations compare equality for both keys and value. When using a custom comparator and comparing\nequality of the keys, the iteration index is provided as both `indexOrKeyA` and `indexOrKeyB` to help use-cases where\nordering of keys matters to equality._\n\n#### strictNullPrototypeComparison\n\nDefaults to `true`, which keeps a null-prototype object (`Object.create(null)`) unequal to an otherwise identical plain\nobject. Set it to `false` to compare the two as dictionaries, for values such as\n[ProseMirror node attributes](https://prosemirror.net/docs/ref/#model.Node.attrs) or `Object.groupBy` results.\n\n```ts\nconst equal = createCustomEqual({ strictNullPrototypeComparison: false });\nconst attrs = Object.assign(Object.create(null), { aspectRatio: 16 / 9 });\n\nequal(attrs, { ...attrs }); // true\n```\n\nThis is the only exception to the constructor check: a null-prototype object remains unequal to arrays, `Map`s, dates,\nand other built-ins, and distinct class constructors remain unequal to each other. It applies to nested values and can\nbe combined with `circular`, `strict`, and custom comparators.\n\n#### getUnsupportedCustomComparator\n\nIf you want to compare objects whose tag is not handled out-of-the-box (such as a custom `Symbol.toStringTag` or a\n`WeakMap`), you can provide a `getUnsupportedCustomComparator` method. It receives both values, the comparison state,\nand the tag, and returns the comparator to use for them. Returning `undefined` treats the values as unequal. See\n[this recipe](./recipes/special-objects.md) for an example.\n\n#### Recipes\n\nSome recipes have been created to provide examples of use-cases for `createCustomEqual`. Even if not directly applicable\nto the problem you are solving, they can offer guidance of how to structure your solution.\n\n- [Legacy environment support for `RegExp` comparators](./recipes/legacy-regexp-support.md)\n- [Explicit property check](./recipes/explicit-property-check.md)\n- [Using `meta` in comparison](./recipes/using-meta-in-comparison.md)\n- [Comparing non-standard properties](./recipes/non-standard-properties.md)\n- [Legacy environment support for circular equal comparators](./recipes/legacy-circular-equal-support.md)\n- [Custom comparator support](./recipes/special-objects.md)\n\n## Benchmarks\n\nAll benchmarks were performed on an i9-11900H Ubuntu Linux 24.04 laptop with 64GB of memory using NodeJS version\n`24.15.0`, and are based on averages of running comparisons based deep equality on the following object types:\n\n- Primitives (`String`, `Number`, `null`, `undefined`)\n- `Function`\n- `Object`\n- `Array`\n- `Date`\n- `RegExp`\n- `react` elements\n- A mixed object with a combination of all the above types\n\n```bash\nTesting mixed objects equal...\n┌────────────────────────────────────────┬────────────────┐\n│ Name                                   │ Ops / sec      │\n├────────────────────────────────────────┼────────────────┤\n│ fast-equals (passed)                   │ 1763109.81851  │\n├────────────────────────────────────────┼────────────────┤\n│ fast-deep-equal (passed)               │ 1297247.799465 │\n├────────────────────────────────────────┼────────────────┤\n│ react-fast-compare (passed)            │ 1271146.258704 │\n├────────────────────────────────────────┼────────────────┤\n│ shallow-equal-fuzzy (passed)           │ 1235115.693854 │\n├────────────────────────────────────────┼────────────────┤\n│ nano-equal (failed)                    │ 964815.367752  │\n├────────────────────────────────────────┼────────────────┤\n│ fast-equals (circular) (passed)        │ 834232.686567  │\n├────────────────────────────────────────┼────────────────┤\n│ dequal (passed)                        │ 759417.072806  │\n├────────────────────────────────────────┼────────────────┤\n│ dequal/lite (passed)                   │ 751901.517376  │\n├────────────────────────────────────────┼────────────────┤\n│ underscore.isEqual (passed)            │ 447789.934941  │\n├────────────────────────────────────────┼────────────────┤\n│ assert.deepStrictEqual (passed)        │ 433256.455121  │\n├────────────────────────────────────────┼────────────────┤\n│ es-toolkit (passed)                    │ 343382.909087  │\n├────────────────────────────────────────┼────────────────┤\n│ fast-equals (strict) (passed)          │ 294211.792998  │\n├────────────────────────────────────────┼────────────────┤\n│ lodash.isEqual (passed)                │ 290477.460766  │\n├────────────────────────────────────────┼────────────────┤\n│ fast-equals (strict circular) (passed) │ 232110.748904  │\n├────────────────────────────────────────┼────────────────┤\n│ deep-eql (passed)                      │ 161408.4511    │\n├────────────────────────────────────────┼────────────────┤\n│ deep-equal (passed)                    │ 951.279346     │\n└────────────────────────────────────────┴────────────────┘\n\nTesting mixed objects not equal...\n┌────────────────────────────────────────┬────────────────┐\n│ Name                                   │ Ops / sec      │\n├────────────────────────────────────────┼────────────────┤\n│ fast-equals (passed)                   │ 5402008.064431 │\n├────────────────────────────────────────┼────────────────┤\n│ fast-equals (circular) (passed)        │ 3687783.563818 │\n├────────────────────────────────────────┼────────────────┤\n│ fast-deep-equal (passed)               │ 3479884.479164 │\n├────────────────────────────────────────┼────────────────┤\n│ react-fast-compare (passed)            │ 3356141.586592 │\n├────────────────────────────────────────┼────────────────┤\n│ fast-equals (strict) (passed)          │ 2927133.435788 │\n├────────────────────────────────────────┼────────────────┤\n│ fast-equals (strict circular) (passed) │ 1566187.833636 │\n├────────────────────────────────────────┼────────────────┤\n│ dequal/lite (passed)                   │ 1316031.262808 │\n├────────────────────────────────────────┼────────────────┤\n│ dequal (passed)                        │ 1298255.762153 │\n├────────────────────────────────────────┼────────────────┤\n│ shallow-equal-fuzzy (failed)           │ 1219217.578795 │\n├────────────────────────────────────────┼────────────────┤\n│ nano-equal (passed)                    │ 1074115.593615 │\n├────────────────────────────────────────┼────────────────┤\n│ underscore.isEqual (passed)            │ 659016.868085  │\n├────────────────────────────────────────┼────────────────┤\n│ lodash.isEqual (passed)                │ 374944.853605  │\n├────────────────────────────────────────┼────────────────┤\n│ es-toolkit (passed)                    │ 355882.255615  │\n├────────────────────────────────────────┼────────────────┤\n│ deep-eql (passed)                      │ 182235.73069   │\n├────────────────────────────────────────┼────────────────┤\n│ assert.deepStrictEqual (passed)        │ 20975.582116   │\n├────────────────────────────────────────┼────────────────┤\n│ deep-equal (passed)                    │ 3760.574487    │\n└────────────────────────────────────────┴────────────────┘\n```\n\nCaveats that impact the benchmark (and accuracy of comparison):\n\n- `Map`s, `Promise`s, and `Set`s were excluded from the benchmark entirely because no library other than `deep-eql`\n  fully supported their comparison\n- `fast-deep-equal`, `react-fast-compare` and `nano-equal` throw on objects with `null` as prototype\n  (`Object.create(null)`)\n- `assert.deepStrictEqual` does not support `NaN` or `SameValue` equality for dates\n- `deep-eql` does not support `SameValue` equality for zero equality (positive and negative zero are not equal)\n- `deep-equal` does not support `NaN` and does not strictly compare object type, or date / regexp values, nor uses\n  `SameValue` equality for dates\n- `fast-deep-equal` does not support `NaN` or `SameValue` equality for dates\n- `nano-equal` does not strictly compare object property structure, array length, or object type, nor `SameValue`\n  equality for dates\n- `react-fast-compare` does not support `NaN` or `SameValue` equality for dates, and does not compare `function`\n  equality\n- `shallow-equal-fuzzy` does not strictly compare object type or regexp values, nor `SameValue` equality for dates\n- `underscore.isEqual` does not support `SameValue` equality for primitives or dates\n\nAll of these have the potential of inflating the respective library's numbers in comparison to `fast-equals`, but it was\nthe closest apples-to-apples comparison I could create of a reasonable sample size. It should be noted that `react`\nelements can be circular objects, however simple elements are not; I kept the `react` comparison very basic to allow it\nto be included.\n","publish_time":1766135775936,"_cnpm_publish_time":1766135775936,"dist-tags":{"latest":"6.2.2","latest-v5":"5.4.5","next":"6.0.0-rc.1"}}