注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。
function toUtf8CodePoints(str, form?): number[]
Returns the UTF-8 code-points for str. If form is specified, the string is normalized.

Parameters

ParameterTypeDescription
strstringThe string to convert.
form?UnicodeNormalizationFormThe normalization form to use.

Returns

number[] The UTF-8 code-points.

Source

encoding/utf8.ts:362