• FillS the string with the given value until the string reaches the specified size

    Example

    pad("123", 5, 0); // "12300"
    

    Example

    pad("123", -5, 0); // "00123"
    

    Parameters

    • str: string
    • size: number
    • Optional value: string = " "

    Returns string

Generated using TypeDoc