Converts the first character of string to upper case and the remaining to lower case.
Literal type of the string.
The string to be converted to uppercase.
const result = capitalize('fred') // returns 'Fred'const result2 = capitalize('FRED') // returns 'Fred' Copy
const result = capitalize('fred') // returns 'Fred'const result2 = capitalize('FRED') // returns 'Fred'
Alias