@tremendous/help
    Preparing search index...

    Function sentenceCase

    • Transforms underscores to spaces and converts the first character of a string to uppercase, while ensuring the rest of the string is lowercase.

      Parameters

      • string: string

        The string to be converted to sentence case.

      Returns string

      The sentence case string.

      sentenceCase("hello_world"); // "Hello world"
      sentenceCase("Hello World"); // "Hello world"