groupBy
signature: groupBy(keySelector: Function, elementSelector: Function): Observable
groupBy(keySelector: Function, elementSelector: Function): Observable
Group into observables based on provided value.
Examples
Example 1: Group by property
( StackBlitz | jsBin | jsFiddle )
Example 2: Group by into key - values
( StackBlitz )
Additional Resources
groupBy 📰 - Official docs
Group higher order observables with RxJS groupBy 🎥 💵 - André Staltz
Use groupBy in real RxJS applications 🎥 💵 - André Staltz
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/groupBy.ts
Last updated