1 export default function zeroFill(number, targetLength, forceSign) {
2 var absNumber = '' + Math.abs(number),
3 zerosToFill = targetLength - absNumber.length,
5 return (sign ? (forceSign ? '+' : '') : '-') +
6 Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;