Array Of & Array From
ES6 added a few static array methods which can come in handy. Array.of creates a new array from any number of arguments and no matter the type of the arguments:
Array.from lets you create an array from array like objects, which means objects with
a length property and indexed elements, or iterable objects (Map, Set).
Array.from accepts as a second argument a map function that can operate over
every item in the array and it also takes a third argument which can be used
as the this
scope when executing the map function.
Read more about Array.from & Array.of