capitalize
capitalize(
string
,firstLetterOnly
?):string
Parameters
• string: string
String to capitalize
• firstLetterOnly?: boolean
= false
If true only first letter is capitalized and other letters stay untouched, if false first letter is capitalized and other letters are converted to lowercase.
Returns
string
Capitalized version of a string