Javascript Array intersect_1D(line)

Description

Javascript Array intersect_1D(line)


Array.prototype.intersect_1D = function(line) {
  
  return (this[0] < line[1] && this[1] > line[0]);
  
}



PreviousNext

Related