Wraps a synchronous or asynchronous iterable into a Stream without altering its replayability or unwrapping Promise values.
The underlying iterator is not acquired until the first read. Single-use iterators remain single-use.
const values = await from([1, 2, 3]).toArray(); Copy
const values = await from([1, 2, 3]).toArray();
Wraps a synchronous or asynchronous iterable into a Stream without altering its replayability or unwrapping Promise values.
The underlying iterator is not acquired until the first read. Single-use iterators remain single-use.