isFunction
isFunction<
T>(f):f is T
Checks if f is classified as Function.
Example
isFunction(() => true))// => true
isFunction("foobar")// => falseAlternatives
- [Lodash - isFunction]https://lodash.com/docs/#isError)
Type Parameters
• T extends Function
Parameters
f
unknown
Returns
f is T
true if x is a Function, false otherwise.