UNPKG

tough-rational

Version:

Rational class using BigInt with fallback to bignumber.js

6 lines (3 loc) 129 B
'use strict'; const leftPad = (c) => (n) => (s) => Array(Math.max(1, n - s.length + 1)).join(c) + s; module.exports = leftPad;