Intersect array based set - Node.js Array

Node.js examples for Array:Set Operation

Description

Intersect array based set

Demo Code


Array.prototype.intersect = function(array){
  return(this.filter(function(n){ return array.include(n); }));
};

Related Tutorials