Skip to content

toTitleCase

toTitleCase(string) → string · String

Convert a string to title case (capitalize first letter of each word). Alias for titleCase.

  • string (required): the string to convert
utlx
toTitleCase("hello world")               // "Hello World"

Released under AGPL-3.0.