RxJS Extensions
Install
npm install --save @rxjsx/rxjsx
Manual
The available operators so far are the following:
Operator | Link | Description |
---|---|---|
flatMap | flatMap | RxJS's mergeMap alias |
zipMap | zipMap | To zip the transformed value with the original value |
flatZipMap | flatZipMap | Similar to zipMap, but to be used when a transformation returns an observable |
projectToFormer | projectToFormer | To project an observable of pairs, to get the first coordinate |
projectToLatter | projectToLatter | To project an observable of pairs, to get the second coordinate |
projectTo | projectTo | To project an observable of tuples |
mapFormer | mapFormer | To transform the first coordinate of an observable of pairs |
mapLatter | mapLatter | To transform the second coordinate of an observable of pairs |
flatMapFormer | flatMapFormer | Similar to mapFormer, but to work on stream-returning transformations |
flatMapLatter | flatMapLatter | Similar to mapLatter, but to work on stream-returning transformations |
listMap | listMap | To transform an observable of list, with a mapping on the list elements |
flatListMap | flatListMap | To transform an observable of list, with a stream-returning member transformation |
listFlatMap | listFlatMap | To transform an observable of list, with a list-returning member transformation |
flatListFlatMap | flatListFlatMap | To transform an observable of list, with a list-observable-returning transformation |