fx-flow v0.7.0 / pipe/strict / isFunction
Function: isFunction()
isFunction<
A
>(args
):args is Include<A, AnyFunction>
Check whether args
is a function.
Type parameters
• A
Parameters
• args: A
Returns
args is Include<A, AnyFunction>
Example
typescript
isFunction(() => {}); // true
isFunction(2); // false