0.1.11 • Published 4 years ago
observable-utils v0.1.11
observable-utils
A collection of lightweight, bundle-friendly, cherry-pickable utilities for manipulating ES7/TC39 Observables, Observers, and Subscriptions. All Observables produced meet the spec and all functions that take an Observable will take any Observable that meets the spec.
combineLatest
combineLatest: (arrayOrMapOfObservables, projectionFunction) -> observableArrayOrMapLike rxjs's combineLatest, but supports either arrays or Objects as first parameters. If given an object, will create an observable object combining the latest values of the input object's keys.
createSubject
createBehaviorSubject
createSubscription
defineObservableSymbol
emptySubscription
subscribeFunctionsAdapter
subscribeObserverAdapter
test
Helper to assist in writing unit tests for Observables.