@connectv/core
Version:
agent-based reactive programming library for typescript/javascript
16 lines • 477 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
*
* Checks if a given object satisfies the `PinLike` interface
*
* @param whatever
*
*/
function isPinLike(whatever) {
return whatever !== undefined && (typeof whatever.from == 'function') && (typeof whatever.to == 'function')
&& 'observable' in whatever
&& (typeof whatever.subscribe == 'function');
}
exports.isPinLike = isPinLike;
//# sourceMappingURL=pin-like.js.map