A number variant of keyof, giving a union of a tuple/object with number-like keys. Technically returns string literals e.g. "3" rather than 3 -- works for element access.
number
keyof
"3"
3
Generated using TypeDoc
A
number
variant ofkeyof
, giving a union of a tuple/object with number-like keys. Technically returns string literals e.g."3"
rather than3
-- works for element access.