JavaScript

All About Javascript

Array.of() in JavaScript ES6

In this post, we are going to understand Array.of() in JavaScript ES6 with examples. “The Array.of() method creates a new  Array constructor from a variable number of arguments, regardless of the number or type of the arguments. The main difference between Array.of() and the Array constructor is in the handling of integer arguments: Array.of(9) creates an array with …

Array.of() in JavaScript ES6 Read More »