mogami-stream - v0.2.0
    Preparing search index...

    Function from

    • 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.

      Type Parameters

      • T

      Parameters

      Returns Stream<T>

      const values = await from([1, 2, 3]).toArray();