📜  javascript 合并两个不重复的列表 - Javascript 代码示例

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

代码示例3
const array1 = ['a','b','c'];
const array2 = ['c','c','d','e'];
const array3 = [...new Set([...array1,...array2])];
console.log(array3); // ["a", "b", "c", "d", "e"]