Creates an array from an array-like or iterable object.
from(arrayLike, mapfn?, thisArg?)
arrayLike
An array-like or iterable object to convert to an array.
mapfn optional function(value, index)
A mapping function to call on every element of the array.
thisArg optional
Value of this used to invoke the mapfn.
Array.from(new Uint8Array([1, 2, 3]))
[ 1, 2, 3 ]
Array.from(new Set([1, 2, 3]), x => 2**x)
[ 2, 4, 8 ]