node/rxjs/src/internal/util/isInteropObservable.ts
raw| 1 | import { InteropObservable } from '../types'; |
| 2 | import { observable as Symbol_observable } from '../symbol/observable'; |
| 3 | import { isFunction } from './isFunction'; |
| 4 | |
| 5 | /** Identifies an input as being Observable (but not necessary an Rx Observable) */ |
| 6 | export function isInteropObservable(input: any): input is InteropObservable<any> { |
| 7 | return isFunction(input[Symbol_observable]); |
| 8 | } |