List of utility methods to do Array Remove All
removeAll(predicate)Array.prototype.removeAll = function (predicate) { var item; var i = 0; while ((item = this.first(predicate)) != null) { i++; this.remove(item); return i; }; ... | |
removeAllOccurences(el)Array.prototype.removeAllOccurences = function(el) { var foundOne = false; while (this.remove(el)) { foundOne = true; return foundOne; }; |