Filtr obejmuje tablicę
let intersection = arr1.filter(x => arr2.includes(x));
Cautious Chimpanzee
let intersection = arr1.filter(x => arr2.includes(x));