MCPcopy
hub / github.com/SamVerschueren/listr / isObservable

Function isObservable

lib/utils.js:7–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5const symbolObservable = typeof Symbol === 'function' && Symbol.observable || '@@observable'; // eslint-disable-line no-mixed-operators
6
7const isObservable = obj => Boolean(obj && obj[symbolObservable] && obj === obj[symbolObservable]()) || require('is-observable')(obj);
8
9exports.isListr = obj => Boolean(obj && obj.setRenderer && obj.add && obj.run);
10exports.isObservable = obj => isObservable(obj);

Callers 2

utils.jsFile · 0.90
utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…