19. implement FirstItem<T>
Share
- accepted / - tried
Similar to 16. FirstChar<T>, please implement FirstItem<T>
to obtain first item of a tuple type.
type A = FirstItem<[string, number, boolean]> // stringtype B = FirstItem<['B', 'F', 'E']> // 'B'