Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove duplicates array.filter

// removeDuplicates ES6
const uniqueArray = oldArray.filter((item, index, self) => self.indexOf(item) === index);
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #remove #duplicates
ADD COMMENT
Topic
Name
1+6 =