Is there a way to split one item in a stream into multiple items?

Viewed 951

Consider the following stream:

--'[a,b,c]'--

The '[a,b,c]' is one item in the stream. Now I'm looking for a way to map that stream into this:

--'a'--'b'--'c'--

I think at some point I need to use map since I only know how to split the array:

Observable.from(['[a,b,c]'])
    .map(i => {
        let arr = JSON.parse(i);
        //Somehow inject the arr items into the stream (instead of arr itself)
    })
    .subscribe(console.log);

I wish to see three separate entries in the console with a, b and c.

1 Answers
Related