Custom RxJS Operators
Because sometimes we get tired of doing the same thing over and over again
And other times our RxJS streams look like this
So let's tame those RxJS streams!
I find myself doing this a lot
someObservable.pipe(filter(x => !!x))
And it would be nice to have something like this
someObservable.pipe(filterUndefined())
Easy Peasy Lemon Squeezy!
Custom operators are always composed of built-in operators
Custom operators are just functions
example: filterUndefined
What if I want to use multiple operators in my custom operator?
example: switchToLatest
For Further Reading
Made with Slides.com