Holen Sie sich Match Number Array JavaScript
var intersections = array1.filter(e => array2.indexOf(e) !== -1);
Restu Wahyu Saputra
var intersections = array1.filter(e => array2.indexOf(e) !== -1);