51. implement Capitalize<T>
Share
- accepted / - tried
Implement MyCapitalize<T>
to capitalize strings.
type A = MyCapitalize<'bfe'> // 'Bfe'
There is built-in
Capitalize<T>
in TypeScript, maybe you can try not to use it.
- accepted / - tried
Implement MyCapitalize<T>
to capitalize strings.
type A = MyCapitalize<'bfe'> // 'Bfe'
There is built-in
Capitalize<T>
in TypeScript, maybe you can try not to use it.