We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Converts iterator to iterable. 🏃 [:vhs:] 📦 🌔
Similar: isIterator, iterator, from.
iterable.from(x); // x: an iterator
const iterable = require('extra-iterable'); var x = [1, 2].values(); var xi = x[Symbol.iterator](); [...iterable.from(xi)]; // [ 1, 2 ]