Skip to content

isFunction ​

Determine whether the input value is a function.

Usage ​

ts
import { isFunction } from 'rattail'

isFunction(() => {}) // return true
isFunction(123) // return false

Arguments ​

ArgTypeDefaults
valueany

Return ​

Type
boolean