Function _padPositiveNumPrivate

  • Private

    Pads the string representation of a number to a minimum width. Requires modern browser.

    Parameters

    • n: number

      Number to pad

    • totalSize: number

      Desired minimum width of number after padding with zeroes

    Returns string

    Number converted to string and padded on the left as needed