Node.js examples for Array:Remove Element
Remove object from Array
Array.prototype.remove = function(obj) { for(var i=0; i<this.length; i++) { if(this[i] === obj) { this.splice(i, 1);/*w w w . j a v a 2s.co m*/ return true; }; }; return false; };