Nice explaination. I really liked the marble machine analogies.
This piece of code was a little bit confusing for me when I first read it:
marbleMachine.pipe( filter((marble) => ['green', 'red'].indexOf(marble) > -1) ).subscribe(
Probably using Array method contains makes it a little bit easier to understand without losing focus on the important stuff: RxJs
contains
Thnx! And good point. I'll change this to something more easy to read. Thanks for the help 🙂
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice explaination. I really liked the marble machine analogies.
This piece of code was a little bit confusing for me when I first read it:
Probably using Array method
contains
makes it a little bit easier to understand without losing focus on the important stuff: RxJsThnx!
And good point. I'll change this to something more easy to read. Thanks for the help 🙂