utils/text/toTitleCase

Changes the first letter of each word to upper case

Source:
Parameters:
Name Type Description
string string

text string to convert to title case (e.g. `this is a string``)

Returns:
  • string converted to title case (e.g. This Is A String)
Type
string