Node.js examples for Number:Compare
If in between two numbers
Array.prototype.inBetween = function(num){ if(num >= this[0] && num <= this[1]){ return true;/*from w w w .j a va 2 s. co m*/ } return false; }