@ngspot/rxjs
A library providing a few useful RxJS operators.
Installation
NPM
npm install @ngspot/ng-superclass
Yarn
yarn add @ngspot/ng-superclass
Operators:
-
filterOutNullish
- type safe operator for filtering out nullish values -
deferredStartWith
- the same asstartWith
, but takes the first value in a callback, which allows to evaluate it lazily -
conditionalStartWith
- the same asdeferredStartWith
, but the first argument is a callback returning a boolean. If boolean is evaluated to true,startWith
is applied with a result of a callback of the second argument -
log$
- logs values passing through this operator -
mutationObserver
- observable creator. Wraps nativeMutationObserver
-
resizeObserver
- observable creator. Wraps nativeResizeObserver
-
zoneFull
- enters the stream into Angular Zone -
zoneFree
- exits the stream from Angular Zone
Usage
import { filterOutNullish } from '@ngspot/rxjs/operators';
myObservable$.pipe(filterOutNullish);
License
MIT © Dmitry Efimenko