Javascript Array remove(filter)
Array.prototype.remove = function(filter) { return this.select(function(row){ return !filter(row); });/*from w w w . j a v a 2 s. c o m*/ }