Packages
A web application in pursuit of meaning in life.
Retired package: Complete rewrite, scratch old versions
Current section
Files
Jump to
Current section
Files
assets/node_modules/mout/src/math/countSteps.js
define(function(){
/**
* Count number of full steps.
*/
function countSteps(val, step, overflow){
val = Math.floor(val / step);
if (overflow) {
return val % overflow;
}
return val;
}
return countSteps;
});