UCFirst
Transform the first letter of a string to uppercase or the first letter of each word, and optionally lowercase uppercase characters.
Method Signature
Arguments
Argument
Type
Required
Description
Default
string
string
true
The string to transform.
doAll
boolean
false
Boolean flag indicating whether to transform the first letter of each word.
false
doLowerIfAllUppercase
boolean
false
Boolean flag indicating whether to lowercase uppercase characters.
false
Examples
Related
Last updated