shallowequal
npmv1.1.0Like lodash isEqualWith but for shallow equal.
Overview
shallowequal is an npm package that like lodash isEqualWith but for shallow equal. The latest version is 1.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need like lodash isEqualWith but for shallow equal and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of shallowequal.
Dependencies
Dev (11)
Used by
Popular packages that depend on shallowequal.
Alternatives to shallowequal
node's assert.deepEqual algorithm except for NaN being equal to NaN
node's assert.deepEqual algorithm
Fastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison.
Fast deep equal
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Measure the difference between two strings using the Levenshtein distance algorithm
A JavaScript text diff implementation.
Frequently installed together
Native navigation primitives for your React Native app.
The Expo SDK
More powerful alternative to Animated library for React Native.
Declarative API exposing native platform touch and gesture system to React Native
Tools for making advanced Metro bundler features work
React Native for Web
Error overlay for universal Expo apps.
React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.
Simple and complete React Native testing utilities that encourage good testing practices.
Lightweight debugging utility for Node.js and the browser
TypeScript definitions for node
Brand checking of React Elements.
Version history
| Version | Published | License |
|---|---|---|
| 1.1.0latest | 8 years ago | MIT |
| 1.0.2 | 9 years ago | MIT |
| 1.0.1 | 9 years ago | MIT |
| 1.0.0 | 9 years ago | MIT |
| 0.2.2 | 11 years ago | MIT |
| 0.2.1 | 11 years ago | MIT |
| 0.2.0 | 11 years ago | MIT |
| 0.1.0 | 11 years ago | MIT |
Maintainers
Frequently asked questions
How do I install shallowequal?
Run `npm install shallowequal` to add shallowequal to your npm project.
What license is shallowequal released under?
shallowequal is distributed under the MIT license.
How popular is shallowequal?
shallowequal has approximately 0 downloads per week and 1 known dependent packages.