Skip to content

addZeroPadding

addZeroPadding(pSource, pPadSize): string

Pad a number with leading zeros. From https://stackoverflow.com/questions/10073699/pad-a-number-with-leading-zeros-in-javascript

Parameters

pSource: string | number

pPadSize: number

Returns

string

Source

src/utils/NumberUtils.ts:7