source: imaps-frontend/node_modules/math-intrinsics/mod.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 218 bytes
Line 
1'use strict';
2
3var $floor = require('./floor');
4
5/** @type {import('./mod')} */
6module.exports = function mod(number, modulo) {
7 var remain = number % modulo;
8 return $floor(remain >= 0 ? remain : remain + modulo);
9};
Note: See TracBrowser for help on using the repository browser.