@tremendous/help
    Preparing search index...

    Function startCase

    • Converts the first character of each word to uppercase.

      This function converts the first character of each word in a string to uppercase, handling spaces and underscores as word separators.

      Parameters

      • string: string

        The string to be converted to start case.

      Returns string

      The start case string.

      startCase("hello world"); // "Hello World"
      startCase("snake_case_string"); // "Snake Case String"