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/inRange.js
define(function(){
/**
* Checks if value is inside the range.
*/
function inRange(val, min, max, threshold){
threshold = threshold || 0;
return (val + threshold >= min && val - threshold <= max);
}
return inRange;
});