Array And Set Operations: What You Need to Know
Too Long; Didn't Read
I recently took on the task of re-writing several open source JavaScript repositories to take advantage of recent optimizations in the JavaScript v8 engine. Some of these optimization involved using built-in classes like `Map` and `Set` instead of arrays. When working with set operations on arrays, I uncovered a fundamental paradigm shift that provides performance boosts of 1x, 2x or even orders of magnitude.