DEV Community

Discussion on: Remove duplicates from an array using indexOf() and filter() methods

Collapse
 
kais_blog profile image
Kai

Thanks for your post! It's an interesting approach. Yet, I think there's an easier way to remove all duplicates. Take a look at tip #2:

Collapse
 
nomishah profile image
nouman shah

Yes, Set is also used to get a unique array.
Thanks, great post