UNPKG

204 BJavaScriptView Raw
1'use strict'
2/**
3 * Test whether a value is a BigNumber
4 * @param {*} x
5 * @return {boolean}
6 */
7module.exports = function isBigNumber (x) {
8 return (x && x.constructor.prototype.isBigNumber) || false
9}