utils.string.capitalize

capitalize(str: string) → {string}

converts the first character of the given string to uppercase

Parameters:
Name Type Description
str string

the string to be capitalized

Returns:
Type Description
string

the capitalized string

Powered by webdoc!