6 Cool Array Functions in ES6 You Must Know

6 ES6 Tricks That Make You Write Less And Do More.

1. Array.of

About the weird Array function:

As we all know, we can do the following things through the Array function.

  1. Initialize an array of the specified length
  2. Set the initial value of the array

--

--

Hi friends, I am a front-end engineer from Alibaba, let’s code happily together.

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
fatfish

Hi friends, I am a front-end engineer from Alibaba, let’s code happily together.