UNPKG

hummus-recipe

Version:

A powerful PDF tool for NodeJS based on HummusJS

7 lines (5 loc) 157 B
'use strict'; module.exports = function mod(number, modulo) { var remain = number % modulo; return Math.floor(remain >= 0 ? remain : remain + modulo); };