Converts iterable to array.
npm install @extra-array/from-update.minConverts iterable to array.
:package:
:smiley_cat:
:running:
:vhs:
:moon:
:scroll:
:newspaper:
:blue_book:
> Alternatives: [from], [from$], [fromRange], [fromApply].
> This is part of package [extra-array].
[extra-array]: https://www.npmjs.com/package/extra-array
> This is browserified, minified version of [@extra-array/from-update].
> It is exported as global variable array_from$.
> CDN: [unpkg], [jsDelivr].
[@extra-array/from-update]: https://www.npmjs.com/package/@extra-array/from-update
[unpkg]: https://unpkg.com/@extra-array/from-update.min
[jsDelivr]: https://cdn.jsdelivr.net/npm/@extra-array/from-update.min
``javascript`
array.from$(x);
// x: an iterable (updatable if array)
`javascript
const array = require("extra-array");
var x = [1, 2].values();
array.from$(x);
// [ 1, 2 ]
``
- Symbol.iterator: MDN web docs
- Array.from: sugarjs
[from]: https://github.com/nodef/extra-array/wiki/from
[fromRange]: https://github.com/nodef/extra-array/wiki/fromRange
[fromApply]: https://github.com/nodef/extra-array/wiki/fromApply
[from$]: https://github.com/nodef/extra-array/wiki/from$