Skip to main content

rightPad

Callable

  • rightPad(value: Numbers, characterAmount: number, sign?: string): string

  • Adds a padding on the right of a string, if value is a integer or bigInt will be converted to a hex string.

    @alias

    padRight


    Parameters

    • value: Numbers
    • characterAmount: number
    • sign: string = '0'

    Returns string