Bytes

type

returns

Getter

array<int>

Explanation

Returns the bytes in the given string as an array of character codes.

Examples

"foo".bytes == [102, 111, 111]
"".bytes == []

Last updated