Node.js examples for Array:Remove Element
Remove one value from array
Array.prototype.removeOneValue = function( v ) { for ( var i = this.length; i--; ) { if ( this[ i ] === v ) { return ( this.splice( i, 1 ) ); }/*from w w w .ja va 2 s .c om*/ } };