UNPKG
animax-langs
Version:
latest (2.0.0)
2.0.0
Modern ve özgün web uygulama geliştirme çerçevesi
animax-langs
/
animax
/
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); };