Today I learned...

| RSS | Contact |

... that the easiest way to find the intersection of two arrays in ES6 is to use

function intersect(a, b) {
  return a.filter(Set.prototype.has, new Set(b));
}