Node.js examples for Array:Remove Element
Remove one element from array by value
Array.prototype.removeOne = function (el) { var index = this.indexOf(el); if (index != -1) { this.splice(index, 1);/* www . ja va2 s . c om*/ return true; } };