UNPKG

rubico

Version:

[a]synchronous functional programming

25 lines (23 loc) 471 B
/** * @name isFunction * * @synopsis * ```coffeescript [specscript] * isFunction(value any) -> boolean * ``` * * @description * Determine whether a value is a function. * * ```javascript [playground] * import isFunction from 'https://unpkg.com/rubico/dist/x/isFunction.es.js' * * const add = (a, b) => a + b * * console.log( * isFunction(add), * ) // true * ``` */ const isFunction = value => typeof value == 'function' module.exports = isFunction