hashCode
Stentor API Reference / stentor-utils/src / hashCode
Function: hashCode()
hashCode(
str):number
Defined in: packages/stentor-utils/src/hash.ts:27
Simple function to convert a string to a simple numeric hash.
This has potential collisions, do not use as a unique key when the population is large.
Parameters​
str​
string
Returns​
number