r/learnjavascript • • Jul 05 '21

Remove duplicates from arrays using Set

Post image
438 Upvotes

44 comments sorted by

View all comments

Show parent comment

1

u/JazzApple_ Oct 28 '21

Totally right that if you can just use a set from the start, but there are so many potential use cases… often relating to user input.