Skip to content

fx-flow v0.7.0 / pipe/strict / isFunction

Function: isFunction()

isFunction<A>(args): args is Include&lt;A, AnyFunction&gt;

Check whether args is a function.

Type parameters

A

Parameters

args: A

Returns

args is Include&lt;A, AnyFunction&gt;

Example

typescript
isFunction(() => {}); // true
isFunction(2); // false

More examples

Source

packages/core/src/pipe/strict/isFunction.ts:14

Released under the MIT License.