27. implement Flat<T>

TypeScript
お役に立つのか?

  - accepted / - tried

Implement Flat<T> to flatten a tuple type.

type A = Flat<[1,2,3]> // [1,2,3]
type B = Flat<[1,[2,3], [4,[5,[6]]]]> // [1,2,3,4,5,6]
type C = Flat<[]> // []

10分間以内で解いてみて

ディスカス(7)