📌  相关文章
📜  javascript 从数组中删除重复项 - Javascript 代码示例

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

代码示例6
let chars = ['A', 'B', 'A', 'C', 'B'];
let uniqueChars = [...new Set(chars)];

console.log(uniqueChars);
Code language: JavaScript (javascript)