Skip to content

titleCase

titleCase(string) → string · String

Convert a string to Title Case (capitalize first letter of each word).

  • string (required): the string to convert
utlx
titleCase("hello world")                 // "Hello World"
titleCase("the quick brown fox")         // "The Quick Brown Fox"

Released under AGPL-3.0.