DEV Community


Discussion on: How to remove duplicates from JavaScript array

mahmoudibnsamy profile image
Mahmoud Ibn Samy

I agree that in some use cases you can't use Set. Actually, in some cases, you can't even use it from the beginning, As an example, if you want to have a collection of unique objects, Set won't help.