Showing 1-20 of 549,811 packages
A type-safe collection of comparison methods for objects and arrays in TypeScript/JavaScript
Get a compare function for array to sort
compare two semver version strings, returning -1, 0, or 1
Securely compare two strings, copied from cryptiles
Fastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Basic sort algorithm that has similar behavior to Array.prototype.sort for null and undefined, but also allows sorting by an object property.
Compare alphanumeric strings the same way a human would, using a natural order algorithm
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Compare semver version numbers
Compare json schemas smarter.
React hooks, except using deep comparison on the inputs, not reference equality
Determine if an array or object is equivalent with another, *not* recursively
It's react's useEffect hook, except using deep comparison on the inputs, not reference equality
Timing safe string compare using double HMAC
Removes duplicates from a sorted array in place
Constant-time comparison algorithm to prevent timing attacks.
A library for recursively merging JavaScript objects
Compare semver version strings to find greater, equal or lesser.
Picks best comparison / diff for snapshot value