Function empty

  • Returns a Stream that is empty.

    Type Parameters

    • T

      Type of items in the Stream.

    Returns Stream<T>

    Stream that is empty.

    const result = empty();
    console.log([...result]); // []