isFunction
isFunction(
func
):func is (args: unknown[]) => unknown
Checks whether a value is a function.
Parameters
Section titled “Parameters”unknown
The value to test.
Returns
Section titled “Returns”func is (args: unknown[]) => unknown
true
if func
is of type “function”, otherwise false
.