📜  js 联合数组 - Javascript 代码示例

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

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