In RxJs 5.4.3 how is it possible to implement a pattern similar to what could be achieved with .ofArrayChanges()
?
(which is not a function in 5.4.3)
http://jsfiddle.net/ablochs/6jr6syhz/1/
var arr = [1,2,3];
var source = Rx.Observable.ofArrayChanges(arr);
var subscription = source.subscribe(
function (x) { console.log('Next: ' + x); },
function (e) { console.log('Error: ' + e); },
function ( ) { console.log('Completed'); });
arr.push(4)