Obtenha JavaScript de Array Número de Match

var intersections = array1.filter(e => array2.indexOf(e) !== -1);
Restu Wahyu Saputra