RxJS: Splitting an array result from Observable.fromPromise
问题 I'm using RxJS here and I can't seem to get over this seemingly simple issue. rx.Observable .from([1,2,3,54,3,22,323,23,11,2]) .distinct() .subscribe(function next (x) { console.log('Next'); console.log(x); }, function error (x) { console.log('Error'); console.log(x); }, function completed () { console.log('Completed'); }); The above code spits out each array item in order as expected. rx.Observable .fromPromise(getNumbers([1,2,3,54,3,22,323,23,11,2])) .distinct() .subscribe(function next (x)