Javascript Array hasItem(item)

Description

Javascript Array hasItem(item)


Array.prototype.hasItem = function(item) {
  return this.indexOf(item) < 0 ? true : false;
}



PreviousNext

Related