Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove duplicates in array

uniq = [...new Set(array)];

or 

uniqueArray = a.filter(function(item, pos) {
    return a.indexOf(item) == pos;
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicates #array
ADD COMMENT
Topic
Name
7+2 =