UNPKG

@connectv/core

Version:

agent-based reactive programming library for typescript/javascript

13 lines 376 B
/** * * Checks if a given object satisfies the `PinLike` interface * * @param whatever * */ export function isPinLike(whatever) { return whatever !== undefined && (typeof whatever.from == 'function') && (typeof whatever.to == 'function') && 'observable' in whatever && (typeof whatever.subscribe == 'function'); } //# sourceMappingURL=pin-like.js.map