UNPKG

kefir

Version:

Reactive Programming library for JavaScript inspired by Bacon.js and RxJS with focus on high performance and low memory usage

20 lines (16 loc) 325 B
import {createStream} from '../patterns/one-source' const S = createStream('changes', { _handleValue(x) { if (!this._activating) { this._emitValue(x) } }, _handleError(x) { if (!this._activating) { this._emitError(x) } }, }) export default function changes(obs) { return new S(obs) }