Node.js examples for Array:Remove Element
Remove one value from array by predicate
Array.prototype.removeOneByPredicate = function (pr) { var index = this.indexOf(this.first(pr)); if (index != -1) { this.splice(index, 1);// www . j a va2 s . c o m return true; } };