isObservable.js 367 B

12345678
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var Observable_1 = require("../Observable");
  4. function isObservable(obj) {
  5. return !!obj && (obj instanceof Observable_1.Observable || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function'));
  6. }
  7. exports.isObservable = isObservable;
  8. //# sourceMappingURL=isObservable.js.map