Checks if the given value is a function.

Type signature

(x?: unknown) => x is Function

Examples

_function((x) => x + 5);
// ⇒ true
Try in REPL

Questions

  • How to check if a given value is a function?

TypeScript sourceJavaScript source