Converts iterable to array.
:package:
:smileycat:
:running:
:vhs:
:moon:
:scroll:
:newspaper:
:bluebook:
Alternatives: from, from$, fromRange, fromApply.
This is part of package extra-array.
This is browserified, minified version of @extra-array/from.
It is exported as global variable arrayfrom.
CDN: unpkg, jsDelivr.
array.from(x);
// x: an iterable
const array = require("extra-array");
var x = [1, 2].values();
array.from(x);
// [ 1, 2 ]