FridayNightFunkinBoyfriendBot/ChomensJS/util/clamp.js

7 lines
121 B
JavaScript
Raw Normal View History

2023-12-17 14:55:27 -05:00
function clamp (value, min, max) {
if (value < min) return min
return Math.min(value, max)
}
module.exports = clamp