23. implement LengthOfTuple<T>
Share
- 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
- 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