DEV Community

Discussion on: How to create an array of unique values in JavaScript using Sets

Collapse
 
neovortex profile image
Neocortexxx • Edited

"They both accomplish the same thing here so the choice is yours!"
Well, actually she refers to the spread operator ('...') and Array.from.
In both cases you still have to use new Set.