Function capitalize

  • Capitalizes the first letter of a string.

    Type Parameters

    • T extends string

    Parameters

    • target: T

      The string to be capitalized.

    Returns Capitalize<T>

    • The capitalized string.