Presentations
Templates
Features
Teams
Pricing
Log in
Sign up
Log in
Sign up
Menu
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
Custom RxJS Operators
By haydenbraxton
Made with Slides.com
Custom RxJS Operators
235
haydenbraxton
github.com/haydenbr
More from
haydenbraxton