Javascript Array erase(e)
Array.prototype.erase=function(e) { this.remove(this.indexOf(e));//from w w w .ja v a2 s . com };