projects
/
allo
/
allo_webadmin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ajout version angular
[allo/allo_webadmin.git]
/
angular
/
node_modules
/
bower
/
lib
/
node_modules
/
mout
/
math
/
clamp.js
diff --git a/angular/node_modules/bower/lib/node_modules/mout/math/clamp.js
b/angular/node_modules/bower/lib/node_modules/mout/math/clamp.js
new file mode 100644
(file)
index 0000000..
e929a9a
--- /dev/null
+++ b/
angular/node_modules/bower/lib/node_modules/mout/math/clamp.js
@@ -0,0
+1,9
@@
+
+ /**
+ * Clamps value inside range.
+ */
+ function clamp(val, min, max){
+ return val < min? min : (val > max? max : val);
+ }
+ module.exports = clamp;
+