Type guard to check if a value is a function. Note: typeof returns "function" for both callables and class constructors, so the Function type is the correct predicate here.
typeof
Function
Value to check
True if the value is a function
Type guard to check if a value is a function. Note:
typeofreturns "function" for both callables and class constructors, so theFunctiontype is the correct predicate here.