initial commit
This commit is contained in:
7
node_modules/clamp/index.js
generated
vendored
Normal file
7
node_modules/clamp/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = clamp
|
||||
|
||||
function clamp(value, min, max) {
|
||||
return min < max
|
||||
? (value < min ? min : value > max ? max : value)
|
||||
: (value < max ? max : value > min ? min : value)
|
||||
}
|
||||
Reference in New Issue
Block a user