Skip to content

Home > @jview/utils > isFunction

isFunction() function

是否是函数类型

Signature:

typescript
export declare function isFunction<T extends GeneralFunction = GeneralFunction>(val: unknown): val is T;
export declare function isFunction<T extends GeneralFunction = GeneralFunction>(val: unknown): val is T;

Parameters

ParameterTypeDescription
valunknown

Returns:

val is T