How to filter RXJS ArrayObservable

questionsCategory: QuestionsHow to filter RXJS ArrayObservable
harsh asked 2 years ago

I have an array which I’d like to filter.. sounds simple I know. But when I do, I still get the entire Array

constructor(http:Http) {
    this._val = Math.random();
    let s = http.get('https://secure.digitalsignage.com/Digg');
    s.map(s => {
        let news = JSON.parse(s._body);
        return Rx.Observable.fromArray(news);
    }).filter(function(data) {
        console.log('all array ' + data);
        return true;
    }).subscribe(function (v) {
        console.log(v);
    });
}