Javascript Array inRange(min, max)

Description

Javascript Array inRange(min, max)

Array.prototype.inRange = function(min, max) {
  return this.isInt().filter(function(n) { return n >= min && n <= max });
}



PreviousNext

Related