Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

within range js

function between(x, min, max) {
  return x >= min && x <= max;
}
// ...
if (between(x, 0.001, 0.009)) {
  // something
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #range #js
ADD COMMENT
Topic
Name
2+2 =