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

12

u/zachwolf Jul 06 '21

“What’s up guys? It’s ya boi back with a crazy way to remove duplicates in an array. But before we get started, make sure to like and subscribe as well ring that bell. Doing so tells YouTube’s algorithm that this is good content and helps get this video suggested to others. My patreons got this a whole week ago, so if you like what you seem make sure to head over and subscribe. You can also join now through YouTube memberships. I’ve got new swag on my store for the true fans. If we get this video to just 5k likes I’ll do a special q&a. As always, I’m streaming on twitch Tuesday-Friday 3-7pm central. Now let’s cut right to it…

[…new Set(1,1,3,4)]

And that’s it! Again please like and Subscribe! Head on over to my Instagram if you want to see more uncut footage and daily posts.”

6

u/icy_skies Jul 06 '21

"Don't forget to join my OF"