work.suroh.tk/node_modules/rxjs/_esm5/symbol/observable.js

26 lines
721 B
JavaScript

/** PURE_IMPORTS_START .._util_root PURE_IMPORTS_END */
import { root } from '../util/root';
export function getSymbolObservable(context) {
var $$observable;
var Symbol = context.Symbol;
if (typeof Symbol === 'function') {
if (Symbol.observable) {
$$observable = Symbol.observable;
}
else {
$$observable = Symbol('observable');
Symbol.observable = $$observable;
}
}
else {
$$observable = '@@observable';
}
return $$observable;
}
export var observable = /*@__PURE__*/ getSymbolObservable(root);
/**
* @deprecated use observable instead
*/
export var $$observable = observable;
//# sourceMappingURL=observable.js.map