r/learnjavascript • • Jul 05 '21

Remove duplicates from arrays using Set

Post image
438 Upvotes

44 comments sorted by

View all comments

18

u/NANOwasFound Jul 05 '21

What is the use of ... before new? Sorry if it's dumb I am very new to js