Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove duplicate array es6

let a = [10,20,30,50,30];
let b = a.reduce((unique,item) => unique.includes(item) ? unique: [... unique, item] ,[]); 
console.log(b);
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #array
ADD COMMENT
Topic
Name
2+8 =