2022-01-21 08:28:41 +00:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2022-04-07 07:06:43 +00:00
|
|
|
exports.isObservable = void 0;
|
2022-01-21 08:28:41 +00:00
|
|
|
var Observable_1 = require("../Observable");
|
2022-04-07 07:06:43 +00:00
|
|
|
var isFunction_1 = require("./isFunction");
|
2022-01-21 08:28:41 +00:00
|
|
|
function isObservable(obj) {
|
2022-04-07 07:06:43 +00:00
|
|
|
return !!obj && (obj instanceof Observable_1.Observable || (isFunction_1.isFunction(obj.lift) && isFunction_1.isFunction(obj.subscribe)));
|
2022-01-21 08:28:41 +00:00
|
|
|
}
|
|
|
|
exports.isObservable = isObservable;
|
|
|
|
//# sourceMappingURL=isObservable.js.map
|