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