Function capitalize

  • Makes the first symbol uppercase and leaves the rest unchanged.

    Parameters

    • str: string

    Returns string

    Example

    capitalize("what is love?") === "What is love?"
    capitalize("") === ""
    capitalize("SHREK") === "SHREK"

Generated using TypeDoc