DEV Community

Cover image for ⚡️ When using ES6 here's a few great ways to initialize an Array.
Aaron Reisman
Aaron Reisman

Posted on

⚡️ When using ES6 here's a few great ways to initialize an Array.

Top comments (4)

Collapse
 
wannabehexagon profile image
ItsThatHexagonGuy

Did you forget to add content? The thumbnail only shows one way to initialize an array.

Collapse
 
lifeiscontent profile image
Aaron Reisman

No, I just wanted to show something short and simple. Technically it's 3 different ways of using the same API.

Collapse
 
perpetual_education profile image
perpetual . education

Just thinking... this is a good example from that other post..... and what ES would you use?

Collapse
 
lifeiscontent profile image
Aaron Reisman

Hi, sorry. I don't understand your question. Can you please explain?