Javascript Array delete(element)
Array.prototype.delete = function(element) { for (i=0;i<this.length;i++) {//from w ww . j av a 2 s . co m if(this[i]==element) { this.splice(i,1); } } }