DEV Community

Discussion on: Clarifying RxJS Observables under 5 minutes

Collapse
 
alfredosalzillo profile image
Alfredo Salzillo

One clarification, use of prototype operators of Observable is deprecated in version 5.x and not will be included in version 6.x of rxjs.
From version 6.x your example becomes

observable.pipe(
  map(value => value + 5),
  flatMap(value => Rx.Observable.of(9)),
  filter(value => value > 5),
)
Collapse
 
sonicoder profile image
Gábor Soós

Thanks for noting, will update the code block