Function strToCharCodes

  • Converts a string to an array of character codes.

    Parameters

    • string: string

      The string to convert.

    Returns number[]

    Example

    strToCharCodes('Hello');;
    //=> [72, 101, 108, 108, 111]

Generated using TypeDoc