@goodnight-dev/utils
    Preparing search index...
    • Capitalize the first character of a string and lowercase the rest.

      Parameters

      • value: string

        The string to capitalize.

      Returns string

      The capitalized string. An empty string is returned unchanged.

      capitalize('hELLO') // => 'Hello'
      capitalize('world') // => 'World'