Can I observe additions to an array with rx.js?
问题 fromArray Rx wiki on github coffee> rext = require 'rx' coffee> arr = [1..5] [ 1, 2, 3, 4, 5 ] coffee> obs = rext.Observable.fromArray(arr) { _subscribe: [Function] } coffee> obs.subscribe( (x) -> console.log("added value: " + x)) added value: 1 added value: 2 added value: 3 added value: 4 added value: 5 { isStopped: true, observer: { isStopped: true, _onNext: [Function], _onError: [Function: defaultError], _onCompleted: [Function: noop] }, m: { isDisposed: true, current: null } } coffee> arr