How to filter RXJS ArrayObservable

questionsCategory: QuestionsHow to filter RXJS ArrayObservable
harsh asked 3 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(''); => {
        let news = JSON.parse(s._body);
        return Rx.Observable.fromArray(news);
    }).filter(function(data) {
        console.log('all array ' + data);
        return true;
    }).subscribe(function (v) {