DEV Community

Discussion on: Understanding RxJS use cases (part II)

Collapse
 
agoncharuks profile image
Alexander Goncharuk

Great article!

Noticed one thing: in the toArray example on this line:

switchMap(response => response.data)

Should it look like this instead?

switchMap(response => from(response.data))

As switchMap should turn the array into an observable emitting items one by one.