Node.js examples for Number:Range
Checks to see if the number is in the range.
//Checks to see if the number is in the range. function isRange(a_num, min, max){ if (a_num < min || a_num > max) { return false; }else{//from ww w .ja va 2 s .co m return true; } }