DEV Community

Discussion on: JavaScript One-Liners That Make Me Excited

Collapse
 
korbraan profile image
Cédric Rémond

I use Set often to remove duplicates, but I didn't know it's possible to use the spread operator on a Set.

I have been using Array.from(new Set(myArray)) until now. Since Array.from take an iterable I could have guessed but...

Nice post !

Collapse
 
healeycodes profile image
Andrew Healey

Glad it helped ya!