observable-forced.js 576 B

12345678910111213
  1. var global = require('../internals/global');
  2. var isCallable = require('../internals/is-callable');
  3. var wellKnownSymbol = require('../internals/well-known-symbol');
  4. var $$OBSERVABLE = wellKnownSymbol('observable');
  5. var NativeObservable = global.Observable;
  6. var NativeObservablePrototype = NativeObservable && NativeObservable.prototype;
  7. module.exports = !isCallable(NativeObservable)
  8. || !isCallable(NativeObservable.from)
  9. || !isCallable(NativeObservable.of)
  10. || !isCallable(NativeObservablePrototype.subscribe)
  11. || !isCallable(NativeObservablePrototype[$$OBSERVABLE]);