array-intersect.js 76 B

123
  1. export default function(a, b) {
  2. return a.filter(x => b.includes(x));
  3. }