Function toHashCode

Converts a string to a hash code.

  • Parameters

    • input: string

      The string to convert.

    Returns number

    The hash code of the input string.