Showing 1-20 of 549,833 packages
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.
Compare semver version strings to find greater, equal or lesser.
A library for recursively merging JavaScript objects
Picks best comparison / diff for snapshot value
Compare your item to items in an array and get the closest one.