Skip to content

wordCase

wordCase(string) → string · String

Convert a string to word case (capitalize first letter, rest lowercase).

  • string (required): the string to convert
utlx
wordCase("HELLO WORLD")                  // "Hello world"
wordCase("hello")                        // "Hello"

Released under AGPL-3.0.