Changelog
4.0.2
toString
to be used, instead using Object.prototype.toString
(thanks
@JorgenEvens)Changelog
4.0.0
Rewrite! Lots of changes under-the-hood for a much more consistent hash, and circular object handling out of the box.
isEmpty
, isEqual
,isNull
, and isUndefined
have been removed (all can be reproduced with new
is
and is.all
functions)
hash.isNull
=> hash.is(null)
hash.isUndefined
=> hash.is(undefined)
hash.isEqual
=> hash.is.all
hash.isEmpty
=>
(object) => hash.is.any(object, undefined, null, '', 0, [], {}, new Map(), new Set())
Error
hashes now based on error.stack
instead of error.message
fast-stringify
ArrayBuffer
support with the use of Buffer.from
when supportedis
partial-application function allows for easy creation of any type of isEqual
comparison
methodis.any
performs the same multiple-object check that is.all
does, but only checks if one of the
other objects is equalis.not
performs the same comparison that is
does, but checks for non-equalityObject
/ Map
/ Set
no longer returns different hashes based on order of key additionhash.isEqual
will no longer fail if nothing is passedChangelog
3.1.0
Generator
(not just GeneratorFunction
)typeof
- vs toString
-driven handling for improved speed for most typesChangelog
3.0.0
require('hash-it').default
instead of just
require('hash-it')
isRecursive
method on hashIt
object (which was wrongly named to begin with)
true
as the
second parameter to hashIt
Changelog
2.1.2
Changelog
2.1.1