How to make your code faster using JavaScript Sets

If you only use arrays, you’re missing a trick

Image Credit: Marc Sendra Martorell / Unsplash

I’m sure there are plenty of developers who stick to the basic global objects: numbers, strings, objects, arrays and booleans.

For many use-cases, these are all you need. But if you want to make your code as fast and scalable as possible, these basic types aren’t always good…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bret Cameron

Bret Cameron

Writer and developer based in London. On Medium, I write about JavaScript and web development 💻