Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove duplicate array es6

let a = [10,20,30,10,30];
let b = a.filter((item,index) => a.indexOf(item) === index);
console.log(b); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #array
ADD COMMENT
Topic
Name
1+7 =