interface Hasher<UK>
Interface used to hash objects for hashed collections.
Companion namespace: Hasher
Type parameters
Name | Description |
---|---|
UK | the upper type limit for which the hasher is assumed to be valid |
note
A hashcode is a 32-bit JS integer and therefore signed. You can obtain the 32-bit version of any JS number by applying a bitwise operator to it, e.g. if x is a number, use x | 0.
Methods
hash
Returns the 32-bit hash code for the given value
.
hash
value
.