UNPKG

big-rat

Version:

A big integer rational number

12 lines (8 loc) 218 B
'use strict' var BN = require('bn.js') module.exports = isBN //Test if x is a bignumber //FIXME: obviously this is the wrong way to do it function isBN(x) { return x && typeof x === 'object' && Boolean(x.words) }