• Initializes and fills an string with the specified value

    Example

    repeat(5, "2"); // "22222"
    

    Parameters

    • n: number
    • Optional value: string = " "

    Returns string

Generated using TypeDoc