@sqlrooms/utils / capitalize
Function: capitalize()
capitalize(
str
):string
Capitalizes the first letter of string
Parameters
Parameter | Type | Description |
---|---|---|
str | string | The string to capitalize |
Returns
string
A new string with the first letter capitalized
Example
ts
capitalize("hello world") // returns "Hello world"