📅  最后修改于: 2022-03-11 15:03:20.602000             🧑  作者: Mango
var myArray = ['a', 1, 'a', 2, '1'];
let unique = [...new Set(myArray)];
console.log(unique); // unique is ['a', 1, 2, '1']