Converts only the first character of the given string to upper case. Note that the rest of the characters are preserved.
Returns the sentence string.
sentenceCase('a test')// 'A test'sentenceCase('TEST')// 'TEST'
capitalize
The string
Generated using TypeDoc
Converts only the first character of the given string to upper case. Note that the rest of the characters are preserved.
Returns
Returns the sentence string.
Example
See
capitalize