@szilanor/stream
    Preparing search index...

    Variable streamOfConst

    streamOf: <T>(...entries: T[]) => Stream<T> = of

    Type declaration

      • <T>(...entries: T[]): Stream<T>
      • Returns a Stream that yields the specified entries.

        Type Parameters

        • T

          Type of items in the Stream.

        Parameters

        • ...entries: T[]

          Entries to create the Stream from.

        Returns Stream<T>

        Stream that yields the specified entries.

        const result = of(1, 2, 3);
        console.log([...result]); // [1, 2, 3]