Skip to main content

padRight

Callable

  • padRight(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.


    Parameters

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

    Returns string