index.js (288B)
1 import Decimal from 'decimal.js'; 2 export * from './arithmetic.js'; // TODO: this is ugly. Instead, be able to pass your own isBigNumber function to typed? 3 4 var BigNumber = Decimal.clone(); 5 BigNumber.prototype.isBigNumber = true; 6 export function bignumber(x) { 7 return new BigNumber(x); 8 }