Function: toTitleCase()
toTitleCase(
str
:string
,options
:ToTitleCaseOptions
):string
Converts a string to Title Case
Parameters
Parameter | Type | Description |
---|---|---|
str | string | The string to title case |
options | ToTitleCaseOptions | The options to use when converting the string |
Returns
string
Description
This is designed to also ensure common Discord PascalCased strings are put in their TitleCase toTitleCaseDiscordJsVariants.
You can also provide your own variants to merge with the toTitleCaseDiscordJsVariants for your own functionality use.