let arr = [
[1, 2, 3, 4, 5,'aa'],
[2, 3, 4, 5, 6, 7, 88,'aa'],
[3, 4, 5, 6, 7, 7,'aa','bbb'],
[3, 4, 5, 6, 7, 7,'aa'],
[3, 4, 5, 6, 7, 9,'aa']
];
let res = arr.reduce((acc, cur, curIndex) => acc.filter( v => cur.indexOf(v) !== -1 ));
console.log(res); // [3, 4, 5, "aa"]
複製代碼