23. implement LengthOfTuple<T>

TypeScript

  - accepted / - tried

Here is an easy problem, please implement LengthOfTuple<T> to return the length of tuple.

type A = LengthOfTuple<['B', 'F', 'E']> // 3type B = LengthOfTuple<[]> // 0

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