Permalink
January 18, 2023 20:26
Newer
100644
6 lines (5 sloc)
184 Bytes
Ignoring revisions in .git-blame-ignore-revs.
1
'use strict';
2
3
module.exports = function bigIntMod(BigIntRemainder, bigint, modulo) {
4
var remain = BigIntRemainder(bigint, modulo);
5
return remain >= 0 ? remain : remain + modulo;
6
};