Skip to content

at

const at: <T>(obj: string | T[], index: number) => string | T = core.at

Defined in: packages/pythonlib/src/index.ts:138

Python-style index access with support for negative indices

Type Parameters

Type Parameter
T

Parameters

ParameterType
objstring | T[]
indexnumber

Returns

string | T