Skip to content

fromIterable$

Subhajit Sahu edited this page May 3, 2023 · 1 revision

Convert an iterable to array!

Alternatives: fromIterable, fromIterable$.
Similar: fromIterable, fromRange, fromInvocation, fromApplication.


function fromIterable$(x)
// x: an iterable (updatable if array!)
const xarray = require('extra-array');

var x = [1, 2].values();
xarray.fromIterable$(x);
// → [ 1, 2 ]


References

Clone this wiki locally