Capitalizes the first letter of a string
string to capitalize
the string with the first letter capitalized
capitalize('foo') // returns 'Foo'capitalize('FOO') // returns 'FOO'capitalize('123') // returns '123'capitalize('') // returns '' Copy
capitalize('foo') // returns 'Foo'capitalize('FOO') // returns 'FOO'capitalize('123') // returns '123'capitalize('') // returns ''
Generated using TypeDoc
Capitalizes the first letter of a string