Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove duplicate values in array javascript

var car = ["Saab","Volvo","BMW","Saab","BMW",];
var cars = [...new Set(car)]
document.getElementById("demo").innerHTML = cars;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #values #array #javascript
ADD COMMENT
Topic
Name
3+2 =