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
/
isNear.js
diff --git a/angular/node_modules/bower/lib/node_modules/mout/math/isNear.js
b/angular/node_modules/bower/lib/node_modules/mout/math/isNear.js
new file mode 100644
(file)
index 0000000..
45486b6
--- /dev/null
+++ b/
angular/node_modules/bower/lib/node_modules/mout/math/isNear.js
@@ -0,0
+1,9
@@
+
+ /**
+ * Check if value is close to target.
+ */
+ function isNear(val, target, threshold){
+ return (Math.abs(val - target) <= threshold);
+ }
+ module.exports = isNear;
+