I have a RxJS5 pipeline looks like this
Rx.Observable.from([2, 3, 4, 5, 6]) .takeWhile((v) => { v !== 4 })
I want to keep the subscrip
If your comparison is such that you know exactly what is the last element (like for !==), you can re-add it yourself:
!==
Rx.Observable.from([2, 3, 4, 5, 6]) .takeWhile((v) => v !== 4) .concat(Rx.Observable.of(4)) .subscribe(console.log)