ES6 — Set vs Array — What and when?

Maya Shavin
Frontend Weekly
Published in
6 min readJan 24, 2018

--

Set VS Array

What is Set and what is Array?

Everyone who works with JS until now is familiar with Array (don’t tell me you don’t). But what exactly is Array?

Well, in general, Array is type of structure representing block of data (numbers, objects, etc…) allocated in consecutive memory.

--

--