Node.js examples for Array:Remove Element
Remove element from array
Array.prototype.remove = function(s) { var i = this.indexOf(s); if(i != -1) { this.splice(i, 1);/*from w w w . ja va 2 s .c om*/ } }