DEV Community

Discussion on: How to remove duplicates from JavaScript array

Collapse
 
hi_iam_chris profile image
Kristijan Pajtasev

There is a topic on the StackOverflow showing the set is faster. I do personally like filter more, but in most cases, you won't see the difference, and you can go for what looks best in your code.

Collapse
 
ibnsamy96 profile image
Mahmoud Ibn Samy

That's good. Thanks.