Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 723 Bytes

File metadata and controls

11 lines (7 loc) · 723 Bytes

Tuple to Union medium #infer #tuple #union

Take the Challenge

Implement a generic TupleToUnion<T> which covers the values of a tuple to its values union.

For example

type Arr = ['1', '2', '3']

const a: TupleToUnion<Arr> // expected to be '1' | '2' | '3'