default
default(
word):string
Defined in: src/utils/capitalize.ts:8
Capitalises the first letter of the string if it’s a lower-case letter. Otherwise, returns the string unchanged.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
word |
string |
The string to capitalise. |
Returns
Section titled “Returns”string
The capitalised string or the original string.