Skip to content

@longmo-utils/common / isFunction

Function: isFunction()

ts
function isFunction(arg): boolean;

是否是函数

Parameters

ParameterTypeDescription
argany参数

Returns

boolean

true|false

Example

ts
isFunction(function(){}) // true

Released under the MIT License.