Download node_modules/math-intrinsics/mod.js from Neilqwe/eu4: direct link, hf CLI and curl.
- Browser
- Download file 218 Bytes
-
https://huggingface.co/spaces/Neilqwe/eu4/resolve/main/node_modules/math-intrinsics/mod.js
- Command line
-
hf download hf://spaces/Neilqwe/eu4/node_modules/math-intrinsics/mod.js
-
curl -L -o mod.js https://huggingface.co/spaces/Neilqwe/eu4/resolve/main/node_modules/math-intrinsics/mod.js
218 Bytes
| ; | |
| var $floor = require('./floor'); | |
| /** @type {import('./mod')} */ | |
| module.exports = function mod(number, modulo) { | |
| var remain = number % modulo; | |
| return $floor(remain >= 0 ? remain : remain + modulo); | |
| }; | |