🦴 utilities
Gets the type of the array or tuple at positive or negative index N.
N
Like Array.at(), this type supports negative numbers.
Array.at()
ArrayPlus.At
https://github.com/microsoft/TypeScript/issues/53345#issuecomment-1477138167
type R = At<[1, 2, 3], 2> // 3type R = At<[1, 2, 3], -1> // 3 Copy
type R = At<[1, 2, 3], 2> // 3type R = At<[1, 2, 3], -1> // 3
🦴 utilities
Gets the type of the array or tuple at positive or negative index
N
.Like
Array.at()
, this type supports negative numbers.