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
Parameter | Type | Description |
---|---|---|
val | unknown |
Returns:
val is T