UNPKG

@connectv/core

Version:

agent-based reactive programming library for typescript/javascript

16 lines 479 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * * 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` * */ function isBindable(whatever) { return !!(whatever.bind) && typeof whatever.bind === 'function'; } exports.isBindable = isBindable; //# sourceMappingURL=bindable.js.map