isFunction
Determine if a value is a Function
67 bytes
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 Functionexport isFunction
Return true if the given value is a function.
isFunction('hello') // => falseimport _
_.function isFunction(value: any): value is Functionexport isFunction
Return true if the given value is a function.
isFunction(['hello']) // => falseimport _
_.function isFunction(value: any): value is Functionexport isFunction
Return true if the given value is a function.
isFunction(() => 'hello') // => true