Type alias RelativeIndex

RelativeIndex: number & {
    __brand?: never;
}

An Index allowing for positive and negative integers. Negative integers count back from the last item in the array.

Example

['a','b','c'].at(-1) => 'c'

Generated using TypeDoc