Skip to main content

leftPad

Callable

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

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

    @alias

    padLeft


    Parameters

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

    Returns string