Home > @dinofe/xt-core > isFunction

# isFunction() function

是否为函数

Signature:

export declare function isFunction(a: any): boolean;

# Parameters

Parameter Type Description
a any 待校验的数据

Returns:

boolean

判断结果

# Example

import { isFunction } from '@dinofe/xt-core/common'
isFunction(() => {}) // true