How to use the isBN function from bn.js
Find comprehensive JavaScript bn.js.isBN code examples handpicked from public code repositorys.
80 81 82 83 84 85 86 87 88 89
assert(typeof options.prevBlock === 'string'); assert(typeof options.merkleRoot === 'string'); assert(util.isNumber(options.ts)); assert(util.isNumber(options.bits)); assert(util.isNumber(options.nonce)); assert(!options.chainwork || BN.isBN(options.chainwork)); this.hash = options.hash; this.version = options.version; this.prevBlock = options.prevBlock;
29
105
47
GitHub: toolopen/web3js
31 32 33 34 35 36 37 38 39 40 41
* @method isBN * @param {Object} object * @return {Boolean} */ var isBN = function (object) { return BN.isBN(object); }; /** * Returns true if object is BigNumber, otherwise false
0
0
1
+ 2 other calls in file
bn.js.prototype is the most popular function in bn.js (15750 examples)