📅  最后修改于: 2022-03-11 15:01:34.787000             🧑  作者: Mango
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"]