📌  相关文章
📜  如何删除数组javascript代码示例中的重复值

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

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