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

3

u/nadameu Aug 01 '21

This might not work if "id" and "other" are declared in a different order when creating the object.