📦 Archived documentation: r1 (committed 2026-07-24) View current documentation →

string.at()

'abc'.at(index) → number

Returns the numeric byte value at a string index.

Arguments

NameTypeRequiredDefaultDescription
index number yes Byte index into the string.

Returns

number The byte value at that index.

Example

'abc'.at(0) === 0x61;