1.0.4 • Published 3 years ago

@scottburch/rxjs-utils v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

RxJS utils

Utility functions for rx-js written in Typescript.

dot('propertyName')

selects a property name from an object

of({prop: 'foo'}).pipe(
    dot('prop'),
    tap(x => x ) // 'foo'
)

switchToLatestFrom

Uses withLatestFrom and then retrieves just the second observable in the array

of('testing').pipe(
    switchToLatestFrom(of('another')),
    tap(x => x) // another
)