%PDF- %PDF-
Direktori : /home/medipszd/public_html/bower_components/moment/src/lib/utils/ |
Current File : /home/medipszd/public_html/bower_components/moment/src/lib/utils/zero-fill.js |
export default function zeroFill(number, targetLength, forceSign) { var absNumber = '' + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign = number >= 0; return (sign ? (forceSign ? '+' : '') : '-') + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber; }