I have this code:
Rx.Observable.from([1,2,3,4,5,6])
.subscribe(x=>console.log(x));
How can I return an array from subscribe instead of the subscribe iterating through the array elements from the .from() method?
I want the x argument to be an array and to console.log() this array.
Observable.of([...])?.fromemits each thing in the iterable as a separate element of the stream.