-
Notifications
You must be signed in to change notification settings - Fork 5
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 ]