isObservable.js 448 B

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