Skip to content

frontend-web-editor


Function: ToTitleCase()

ToTitleCase(str, stripDashes): string

Defined in: utils/StringUtils.ts:10

Parameters

str

string

The string to convert to title case.

stripDashes

boolean = true

Specifies whether to strip dashes from the string

Returns

string

The input string converted to title case.

Remarks

Converts a string to title case. If set to true, dashes will be replaced with spaces; if set to false, dashes will be retained. Defaults to true.