Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript to remove duplicates from an array

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