@scottburch/rxjs-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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
)

Readme

Keywords

none

Package Sidebar

Install

npm i @scottburch/rxjs-utils

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

19.5 kB

Total Files

30

Last publish

Collaborators

  • scottburch