It may be because Set
is relatively new to JavaScript but I haven't been able to find an article, on Stack Overflow or anywhere else, that talks about the performance difference between the two in JavaScript. So, what is the difference, in terms of performance, between the two? Specifically, when it comes to removing, adding and iterating.