Skip to content

strToNumberHash JavaScriptDart

Returns the specified string as a hash value of type number. The return value can also be negative.

Parameters

  • str::string

Returns

number

Examples

javascript
strToNumberHash('abc'); // Returns 96354
strToNumberHash('Hello'); // Returns 69609650
strToNumberHash('hello'); // Returns 99162322

Released under the MIT License