@tempots/std

stringHashCode() function

Calculates the hash code for a given string.

Signature:

stringHashCode: (value: string, seed?: number) => number

Parameters

Parameter

Type

Description

value

string

The string to calculate the hash code for.

seed

number

(Optional) The seed value for the hash code calculation. Default is 0x811c9dc5.

Returns: number

The calculated hash code as a number.