Capitalizes the first letter of a string.
let a = capitalize('foo'); // a has type 'Foo'a = 'bar'; // Error: Type '"bar"' is not assignable to type '"Foo"' Copy
let a = capitalize('foo'); // a has type 'Foo'a = 'bar'; // Error: Type '"bar"' is not assignable to type '"Foo"'
The string type.
The string to capitalize.
The capitalized string with a Capitalize type.
Capitalizes the first letter of a string.
See
Example