Skip to content

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.

Parameter Type Description
word string The string to capitalise.

string

The capitalised string or the original string.