Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove all duplicates from an Array

const removeDuplicates = arr => [...new Set(arr)];
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #remove #duplicates #Array
ADD COMMENT
Topic
Name
3+5 =