26. implement ReverseTuple<T>
Share
- accepted / - tried
Implement ReverseTuple<T>
to reverse a tuple type.
type A = ReverseTuple<[string, number, boolean]> // [boolean, number, string]type B = ReverseTuple<[1,2,3]> // [3,2,1]type C = ReverseTuple<[]> // []