GT2/GT2-iOS/node_modules/symbol-observable/es/ponyfill.js

18 lines
333 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
export default function symbolObservablePonyfill(root) {
var result;
var Symbol = root.Symbol;
if (typeof Symbol === 'function') {
if (Symbol.observable) {
result = Symbol.observable;
} else {
result = Symbol('observable');
Symbol.observable = result;
}
} else {
result = '@@observable';
}
return result;
};