RxJS Functions (Part 14)

Corey Pyle
1 min readJan 21, 2019

--

isObservable

Is you is, or is you ain’t my baby…

isObservable

https://rxjs.dev/api/index/function/isObservable

Tests to see if the object is an RxJS Observable

Use Case

As in the above example, combining isObservable with iif could be a good way to make sure you’re always subscribed to an Observable in cases where you’re not sure of a variables current value.

Short and sweet today. Thanks for reading. Stay tuned for Part 15, and be sure to check out my previous articles.

--

--