Node.js examples for Array:Set Operation
Except two Array
Array.prototype.except = function( v ) { var res = []; for ( var i = 0, n = this.length; i < n; i++ ) if ( this[ i ] !== v ) res.push( this[ i ] ) return res;//from w ww . j a va 2 s. c o m }