import { curry } from 'ramda' ; import { digit } from './digit' ; import { toFixed } from './to-fixed' ; export const plus = curry ( ( a , b ) => { const dgt = Math . max ( digit ( a ) , digit ( b ) ) ; return toFixed ( dgt , a + b ) ; } ) ;