Skip to content

numberHash

Requires a Node.js runtime ('qsu/node')

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
numberHash('abc'); // Returns 96354
numberHash('Hello'); // Returns 69609650
numberHash('hello'); // Returns 99162322
dart
numberHash('abc'); // Returns 96354
numberHash('Hello'); // Returns 69609650
numberHash('hello'); // Returns 99162322

Released under the MIT License