@tremendous/help
    Preparing search index...

    Function capitalize

    • Capitalizes the first letter of a string and lowercases the rest.

      Parameters

      • string: string

        The string to be capitalized.

      Returns string

      The capitalized string.

      capitalize("hello WORLD"); // "Hello world"