Find matches in two arrays code example Example: Find matches in two arrays const intersection = array1.filter(element => array2.includes(element));