Function padString

  • Will pad the input string with zeros to the desired length.

    Parameters

    • input: string | number

      The input string / number

    • length: number

      The desired length

    • padChar: string

      The character to use for padding.

    Returns string

    The padded string