Sign up
Sign in
This utilizes the Set object, which stores unique values, combined with the spread operator to convert it back to an array. It's an elegant way to remove duplicates from an array.
Set
Mate Marschalko
Adam Drake
Follow
--
Share
I wasnt aware of this one. Thanks!
I'm a Frontend Developer and I write about all things Frontend Related - Think lightly of yourself and deeply of the world. Based in Prague, CZ
Help
Status
About
Careers
Press
Blog
Privacy
Terms
Text to speech
Teams