UNPKG

tough-rational

Version:

Rational class using BigInt with fallback to bignumber.js

7 lines (4 loc) 164 B
'use strict'; const noop = require('./noop'); const bindKey = (o, fn) => function (...args) { return (o[fn] || noop).apply(o, args); }; module.exports = bindKey;