📜  获取两个列表的联合 javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:44.258000             🧑  作者: Mango

代码示例1
var a = [34, 35, 45, 48, 49];
var b = [48, 55];
var union = [...new Set([...a, ...b])];
console.log(union);