@eroyeroy/utils - v0.1.0
    Preparing search index...

    Function capitalize

    • Uppercases the first character of a string, leaving the rest unchanged.

      Parameters

      • str: string

        The input string.

      Returns string

      capitalize("hello world") // => "Hello world"
      capitalize("") // => ""