24. implement LengthOfString<T>

TypeScript
Is this helpful ?

from all members: - accepted / - tried

Implement LengthOfString<T> to return the length of a string.


type A = LengthOfString<'BFE.dev'> // 7
type B = LengthOfString<''> // 0

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

Discuss(4)