DEV Community

Discussion on: JavaScript: How to Remove Duplicate Values from Arrays

Collapse
 
will_devs profile image
Will Harris

Thanks for throwing together that jsperf test Mike!

Set does appear to be much faster, which is fantastic because the syntax is so much easier to grok (for me, at least).

Collapse
 
miketalbot profile image
Mike Talbot ⭐

Yes, nice that good syntax has great performance haha! Not a normal happy thing that I find! (Like the immutability is a nicer syntax but comes with a penalty).