Tweakr
    Preparing search index...

    Function titleCase

    • Converts a string to title case, capitalizing the first letter of each word.

      Parameters

      • str: string

        The input string.

      Returns string

      The string in title case.

      1.1.0

      titleCase("hello world"); // "Hello World"
      titleCase("javaScript IS fun"); // "Javascript Is Fun"