diff options
Diffstat (limited to 'library/moment/src/lib/utils/zero-fill.js')
-rw-r--r-- | library/moment/src/lib/utils/zero-fill.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/library/moment/src/lib/utils/zero-fill.js b/library/moment/src/lib/utils/zero-fill.js deleted file mode 100644 index 7009ec903..000000000 --- a/library/moment/src/lib/utils/zero-fill.js +++ /dev/null @@ -1,7 +0,0 @@ -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; -} |