@connectv/core
Version:
agent-based reactive programming library for typescript/javascript
11 lines • 356 B
JavaScript
/**
*
* @param whatever
* @returns `true` if `whatever` is a `Signature`.
*
*/
export function isSignature(whatever) {
return whatever !== undefined && whatever.outputs !== undefined && whatever.outputs.length !== undefined &&
(whatever.inputs === undefined || whatever.inputs.length !== undefined);
}
//# sourceMappingURL=signature.js.map