UNPKG
@hclsoftware/secagent
Version:
latest (1.13.0)
1.13.0
1.11.1
1.10.2
1.10.1
1.9.2
1.9.1
1.8.2
1.8.1
1.7.0
1.5.0
1.4.0
1.3.0
1.2.1
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
IAST agent
@hclsoftware/secagent
/
node_modules
/
math-intrinsics
/
mod.js
10 lines
(7 loc)
•
218 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
'use strict'
;
var
$floor =
require
(
'./floor'
);
/**
@type
{
import('./mod')
} */
module
.
exports
=
function
mod
(
number
, modulo
) {
var
remain =
number
% modulo;
return
$floor(remain >=
0
? remain : remain + modulo); };