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;
fork icon29
star icon105
watch icon47

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
fork icon0
star icon0
watch icon1

+ 2 other calls in file