capitalize

Function

Upper case first letter (only) of a string

Upper case first letter (only) of a string

  • capitalize(word: string) : string

Parameters

Parameter Type Default Notes
word Required string

Returns

Word

string

Function defined in packages/common/src/util.ts:404