modBigInt.js 184 B

123456
  1. 'use strict';
  2. module.exports = function bigIntMod(BigIntRemainder, bigint, modulo) {
  3. var remain = BigIntRemainder(bigint, modulo);
  4. return remain >= 0 ? remain : remain + modulo;
  5. };