ramda-extension
Version:
Helpful functions built on top of the mighty Ramda
29 lines (26 loc) • 557 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _ramda = require("ramda");
/**
* Returns true if argument is type of Function.
*
* @func
* @category Type
*
* @example
*
* R_.isFunction(() => {}) // true
* R_.isFunction({}) // false
* R_.isFunction([]) // false
* R_.isFunction('') // false
* R_.isFunction(0) // false
*
* @sig a -> Boolean
*
*/
var isFunction = (0, _ramda.is)(Function);
var _default = isFunction;
exports.default = _default;