UNPKG

@osaedasia/oresume

Version:

A user-friendly library for generating complete Single Page Applications (SPAs)

2 lines (1 loc) 386 B
function t(t){if("object"!=typeof t||null===t)return!1;const e=Object.getOwnPropertyDescriptor(t.constructor.prototype,"state");if(!e||"function"!=typeof e.get||"function"!=typeof e.set)return!1;if("function"!=typeof t.subscribe||"function"!=typeof t.listen)return!1;try{const e=1===t.subscribe.length,n=2===t.listen.length;return e&&n}catch{return!1}}export{t as isAnObserverService};