Web streams utils - v1.0.0
    Preparing search index...

    Function append

    • Append items to a stream

      Type Parameters

      • T

      Parameters

      • ...items: T[]

        The items to append to the stream

      Returns TransformStream<T, T>

      A TransformStream that appends the items to the end of the stream

      const stream = readable.pipeThrough(append(4, 5, 6));
      // If readable emits [1, 2, 3], the result will be [1, 2, 3, 4, 5, 6]