rxjs / 7.5.5 / api / index / function / isobservable.html /

isObservable

function stable

Tests to see if the object is an RxJS Observable

isObservable(obj: any): obj is Observable<unknown>

Parameters

obj any

the object to test

Returns

obj is Observable<unknown>

© 2015–2022 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/index/function/isObservable