-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
module-replacements/docs/modules/deep-equal.md
Lines 24 to 42 in d54194b
| ## `fast-deep-equal` | |
| [`fast-deep-equal`](https://www.npmjs.com/package/fast-deep-equal) again has the same API shape. | |
| Example: | |
| ```ts | |
| import deepEqual from 'deep-equal' // [!code --] | |
| import fastDeepEqual from 'fast-deep-equal' // [!code ++] | |
| const a = { foo: 'bar' } | |
| const b = { foo: 'bar' } | |
| deepEqual(a, b) // true [!code --] | |
| fastDeepEqual(a, b) // true [!code ++] | |
| ``` | |
| > [!NOTE] | |
| > This library has a separate entrypoint for supporting Maps, Sets, etc. You can use `fast-deep-equal/es6` to support those types. |
This module is actually unmaintained and has a broken ES entrypoint apparently.
I don't think we should be recommending unmaintained projects.
We could list fast-equals but its ~340KB thanks to sourcemaps and quadruple-package (cjs, umd, esm, minified)
In fact, we should probably add fast-deep-equal to the replacements itself...
joaopedrodcf
Metadata
Metadata
Assignees
Labels
No labels