isObservable.js 269 B

123456
  1. import { Observable } from '../Observable';
  2. import { isFunction } from './isFunction';
  3. export function isObservable(obj) {
  4. return !!obj && (obj instanceof Observable || (isFunction(obj.lift) && isFunction(obj.subscribe)));
  5. }
  6. //# sourceMappingURL=isObservable.js.map