Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mpankajarun/stream-operations-with-rxjs

Fundamental functions on simple streams to practice RxJS and Stream Operations.
https://github.com/mpankajarun/stream-operations-with-rxjs

javascript observable-streams rxjs stream-processing

Last synced: about 1 month ago
JSON representation

Fundamental functions on simple streams to practice RxJS and Stream Operations.

Awesome Lists containing this project

README

        

## Operations on Simple Streams
The fundamental functions on simple streams—those that emit simple values, like strings—include:

1. map()
2. filter()
3. reduce()
4. take() / takeWhile()
5. concat() & merge()
6. switch()

With the exception of take() and takeWhile(), these are analogous to JavaScript’s higher-order array functions.

We’ll apply each of these by solving an example problem: Finding all the users in our database who have a .com or .org website, and calculating the average length of their websites’ names.

JSONPlaceholder will be our source of users. Here’s the JSON representation of the user data we’ll be working with.