isFunction
Determine if a value is a Function
67 bytes
since v12.1.0
Usage
Pass in a value and get a boolean telling you if the value is a function.
import * as import _
_ from 'radashi'
import _
_.function isFunction(value: any): value is Function
Return true if the given value is a function.
isFunction('hello') // => falseimport _
_.function isFunction(value: any): value is Function
Return true if the given value is a function.
isFunction(['hello']) // => falseimport _
_.function isFunction(value: any): value is Function
Return true if the given value is a function.
isFunction(() => 'hello') // => true