streamlet

Simple data and event observables.

Streamlet

Simple data and event observables.

Create a new observable. The passed in function will receive functions next, fail and done as its arguments which can be called to seal the fate of the created observable.

Subscribes to an observable and returns an function, that will unsubscribe you, once called.

Shortcut for calling .listen(null, handler)

Shortcut for calling .listen(null, null, handler)

Sends values from original observable to the stream one. returns stream

Applies the given convert function to each value from the original observable and returns an observable with changed values.

Filters values from the original observable using the given test function.

Skips the first count values from the original observable.

Skips values from the original observable until the given test function applied to a value returns false

Skips duplicate values using === for comparison. Accepts an optional compare function which is then used instead of ===.

Takes at most count elements from original observable, then ends.

Takes values from the original observable until the given test function applied to a value returns false.

Expands single values from original observable to multiple values in the current one.

Scans the original observable with optional given seed value and combine function

Shortcut to Streamlet.merge(this, stream)

Creates an observable from events on a DOM EventTarget

Merges several streams observables into a single stream i.e., simply repeats values from each source observable.

Create an observable and return a Controller to control it.