UNPKG

@connectv/core

Version:

agent-based reactive programming library for typescript/javascript

13 lines 376 B
/** * * Checks if given object matches [Bindable](https://connective.dev/docs/interfaces#bindable) interface. * Basically checks if `.bind()` method exists. * * @param whatever * @return `true` if `any` is `Bindable` * */ export function isBindable(whatever) { return !!(whatever.bind) && typeof whatever.bind === 'function'; } //# sourceMappingURL=bindable.js.map