🦴 utilities
Gets the last entry in the tuple or the type of array T.
T
type R = Last<[1, 2, 3]> // 3type R = Last<string[]> // stringtype R = Last<[]> // never Copy
type R = Last<[1, 2, 3]> // 3type R = Last<string[]> // stringtype R = Last<[]> // never
Return type when T is never. Default to never.
never
Return type when T is []. Default to never.
[]
🦴 utilities
Gets the last entry in the tuple or the type of array
T
.