• Converts the first character of string to upper case and the remaining to lower case.

    Parameters

    • Optionalstring: string

      The string to capitalize.

    Returns string

    Returns the capitalized string.