Javascript Array inBetween(num)

Description

Javascript Array inBetween(num)


// If in bewteen two numbers
Array.prototype.inBetween = function(num){
 if(num >= this[0] && num <= this[1]){
  return true;//from   w w w . j  a va 2s .co  m
 }
 return false;
}



PreviousNext

Related