Remove duplicate record from Javascript Array in ES6 By admin April 25, 2021 0 comment Uncategorized There are many way’s to implement it but ES6 make it so cool. Let see how: let arr = [1, 2, 2, 3, 4];let distinctArray = new Set(arr); Share: Leave a Reply Cancel reply Save my name, email, and website in this browser for the next time I comment.