Checks if the input is a function.
检查输入是否为函数。
extends (...args: any[]) => any - The type of elements in the array / 数组元素的类型
The value to check. 要检查的值
True if the value is a function, false otherwise. 如果值为函数则返回 true,否则返回 false
isFunction(() => {}) // => trueisFunction({}) // => false Copy
isFunction(() => {}) // => trueisFunction({}) // => false
Checks if the input is a function.
检查输入是否为函数。