Javascript Array remove= function()
function()
Array.prototype.remove= function(){ var what, a= arguments, L= a.length, ax; while(L && this.length){ what= a[--L];/*from w w w . ja v a 2s. co m*/ while((ax= this.indexOf(what))!= -1){ this.splice(ax, 1); } } return this; }