» Posts by Nathaniel Kessler

RxJS, where is the If-Else Operator?

Written by Nathaniel Kessler

if/else statements are a staple for handling conditional actions. It's natural for most developers to reach for the if/else statement when a decision needs to be made in code. However, in the reactive programming paradigm (e.g. with RxJS) this conditional statement is mysteriously unavailable. How can you code without it? The trick is to use more streams and composition. Break up each...

Read More »