observable-utils

0.1.11 • Public • Published

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) -> observableArrayOrMap

Like 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.

/observable-utils/

    Package Sidebar

    Install

    npm i observable-utils

    Weekly Downloads

    6

    Version

    0.1.11

    License

    none

    Unpacked Size

    40.8 kB

    Total Files

    31

    Last publish

    Collaborators

    • wcjohnson