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

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

代码示例6
var car = ["Saab","Volvo","BMW","Saab","BMW",];
var cars = [...new Set(car)]
document.getElementById("demo").innerHTML = cars;