Task: Concat Node Stream

Track

Problem Solving

Tags

NodeJS, JavaScript, Stream Processing

Description

Node's stream is a very powerful and mysterious structure to me. If you have read this document through, you probably know what I'm talking about. Hopefully you don't have to read it through to solve this task. Good luck, hahaha!

Specification

In this task, implement a function that given a list of Readable streams, return a Readable stream that is the concatenation of the input streams in the given order.

For example, if we represent a stream of values as an array, like [1, 2, 3], then

  • Given 3 streams [1, 2, 3], [4, 5, 6], [7, 8, 9]
  • The function should return a stream emitting values [1, 2, 3, 4, 5, 6, 7, 8, 9].

Trivial, right?

Configuration

There is not configuration for this task.

Example

Example test case is already provided in the template.

Instructions
Get started
My Submissions

Submit to see your result!

Leaderboard

Nobody here yet, solve it now to get on the board!