📅  最后修改于: 2022-03-11 15:03:28.557000             🧑  作者: Mango
let chars = ['A', 'B', 'A', 'C', 'B'];
let uniqueChars = [...new Set(chars)];
console.log(uniqueChars);
Code language: JavaScript (javascript)