How to use the apply function from bn.js

Find comprehensive JavaScript bn.js.apply code examples handpicked from public code repositorys.

5
6
7
8
9
10
11
12
13

var BN = function BN(n, base) {
  if (!(this instanceof BN)) {
    return new BN(n, base);
  }
  _BN.apply(this, arguments);
};

BN.prototype = _BN.prototype;
fork icon0
star icon0
watch icon2