Function padRight

  • If string is less than length characters long, add however many padWith characters are necessary to make up the difference to the END of the string.

    Parameters

    • string: string
    • length: number
    • padWith: string = ' '

    Returns string