@tempots/std

stringToCharcodes() function

It transforms a string into an Array of char codes in integer format.

Signature:

stringToCharcodes: (s: string) => number[]

Parameters

Parameter

Type

Description

s

string

The string to transform.

Returns: number[]

An array of char codes.