UNPKG

tough-rational

Version:

Rational class using BigInt with fallback to bignumber.js

14 lines (10 loc) 208 B
'use strict'; const forOwn = require('./for-own'); const mapOwn = (fn) => (o) => { const retval = {}; forOwn(o, (v, k) => { retval[k] = fn(v, k); }); return retval; }; module.exports = mapOwn;