Flatten a stream of arrays into individual chunks
A TransformStream that flattens arrays into individual chunks
const stream = readable.pipeThrough(flatten());// If readable emits [[1, 2], [3, 4]], the result will be [1, 2, 3, 4] Copy
const stream = readable.pipeThrough(flatten());// If readable emits [[1, 2], [3, 4]], the result will be [1, 2, 3, 4]
Flatten a stream of arrays into individual chunks