PHP
·
发表于 5年以前
·
阅读量:7541
function intersection(arr1, arr2) {
return arr2.filter((v) => arr1.includes(v));
}