type-challenges icon indicating copy to clipboard operation
type-challenges copied to clipboard

14 - First of Array

Open Tushar2098 opened this issue 3 years ago • 0 comments

type First<T extends any[]> = T extends [infer U, ...infer _] ? U : never

Tushar2098 avatar Nov 11 '22 14:11 Tushar2098