mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
9 lines
188 B
JavaScript
9 lines
188 B
JavaScript
/**
|
|
* Test whether a value is a BigNumber
|
|
* @param {*} x
|
|
* @return {boolean}
|
|
*/
|
|
module.exports = function isBigNumber(x) {
|
|
return x && x.constructor.prototype.isBigNumber || false
|
|
}
|