Javascript Array plumRemove(elemVal)

Description

Javascript Array plumRemove(elemVal)

  
Array.prototype.plumRemove = function(elemVal){
  var i = this.indexOf(elemVal);
  if(i>-1){//from ww w  .j av a2  s .  c om
    this.splice(i, 1);
  }
};



PreviousNext

Related