📅  最后修改于: 2022-03-11 15:01:37.337000             🧑  作者: Mango
const array = [1, 1, 2, 3, 5, 5, 1]
const uniqueArray = [...new Set(array)];
console.log(uniqueArray); // Output: [1, 2, 3, 5]