RxJS: Turn a Stream of Objects into an Object of Streams

source$.a.b.c.subscribe(…)

Hi, fellow streamer! Today I want to share a JS/TS package that allows you to access props of objects on Observables:

Image for post
Image for post
Image for post
Image for post
☝️ of will create an Observable out of it's arguments
Image for post
Image for post
👀 I can see your intentions
Image for post
Image for post
🤯 pure magic, I tell you
Image for post
Image for post
🤲 scan accumulates values over time

🎹 Try it

You can install it via npm i rxjs-proxify
Or test it online: stackblitz.com/edit/rxjs-proxify-repl

📖 Repository

The source code and more examples are available on github repo:
github.com/kosich/rxjs-proxify

👋 Outro

Thank you for reading this article!
Stay reactive and have a nice day 🙂

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store