capitalize
capitalize(
params):string
Defined in: strings/capitalize/index.ts:21
Capitalizes the first character of a string.
Parameters
Section titled “Parameters”params
Section titled “params”CapitalizeParams
The parameters object
Returns
Section titled “Returns”string
The capitalized string
Example
Section titled “Example”capitalize({ str: "hello" });// => "Hello"Keywords
Section titled “Keywords”uppercase first, first letter uppercase, initial cap
Throws
Section titled “Throws”Error if str is not a string