Skip to content

isFunction

isFunction(func): func is (args: unknown[]) => unknown

Checks whether a value is a function.

unknown

The value to test.

func is (args: unknown[]) => unknown

true if func is of type “function”, otherwise false.