@extra-array/from.min
v2.10.19
Published
Converts iterable to array.
Downloads
20
Readme
Converts iterable to array. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-array.
This is browserified, minified version of @extra-array/from. It is exported as global variable array_from. CDN: unpkg, jsDelivr.
array.from(x);
// x: an iterable
const array = require("extra-array");
var x = [1, 2].values();
array.from(x);
// [ 1, 2 ]