@rvoh/dream
    Preparing search index...

    Function capitalize

    • Capitalizes the first character of a string.

      Examples: capitalize('hello') // 'Hello' capitalize('über') // 'Über' capitalize('😊hello') // '😊hello'

      Parameters

      • str: string

        The string to capitalize

      Returns string

      The input string with its first character capitalized