A hash function: returns a 32-bit integer for any value, the same one for equal values.
[hashCodeSymbol] receives one, to hash nested values the way the caller does.
[hashCodeSymbol]
const hash: HashFunction = hashCodehash('a') === hash('a') // true Copy
const hash: HashFunction = hashCodehash('a') === hash('a') // true
A hash function: returns a 32-bit integer for any value, the same one for equal values.
[hashCodeSymbol]receives one, to hash nested values the way the caller does.