Buckets:
| /** prettier */ | |
| import { Observable } from '../Observable'; | |
| import { isFunction } from './isFunction'; | |
| /** | |
| * Tests to see if the object is an RxJS {@link Observable} | |
| * @param obj the object to test | |
| */ | |
| export function isObservable(obj: any): obj is Observable<unknown> { | |
| // The !! is to ensure that this publicly exposed function returns | |
| // `false` if something like `null` or `0` is passed. | |
| return !!obj && (obj instanceof Observable || (isFunction(obj.lift) && isFunction(obj.subscribe))); | |
| } | |
Xet Storage Details
- Size:
- 503 Bytes
- Xet hash:
- e5ee1304bba6079aeedb267af7b905e6b92b7bbddf601b0770a07275339dcd48
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.