18. implement TupleToUnion<T>

TypeScript
Is this helpful ?

  - accepted / - tried

Given a tuple type, implement TupleToUnion<T> to get a union type from it.

type Foo = [string, number, boolean]

type Bar = TupleToUnion<Foo> // string | number | boolean

Let's try to solve this problem within 5 mintues.

Discuss(8)