Since the last update on RxJS Ninja there have been a few new operators added, below are some details and links to StackBlitz demos showing them in action.
Numbers and Math operators
@rxjs-ninja/rxjs-number the missing toFixed
operator has been
added, alongside a new custom toHex
operator and the
one allowing hex numbers to be worked with (
such as converting colours)
Working with Browser Streams
fromReadableStreamto show partial images
- Demo - A basic infinite number stream that ticks per second
- Streams an Observable interval value into a
WritableStreamwith optional ability to stop the writer without ending the Observable subscription.
fetch to do a HTTP request, instead
of the body response it emits either a
number which is the current progress, or a
Uint8Array containing the final
response from the body.
- Demo Fetches an image and shows a progress bar with the current percentage and once complete shows the image.