type-challenges
type-challenges copied to clipboard
14 - First of Array
type First<T extends any[]> = T extends [infer U, ...infer _] ? U : never