codetrix - v1.5.0
    Preparing search index...

    Function capitalize

    • Capitalizes the first letter of a string.

      Parameters

      • str: string

        The string to capitalize.

      Returns string

      The capitalized string.

      capitalize('hello'); // 'Hello'