/is/function
stdChecks 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?
(x?: unknown) => x is Function
_function((x) => x + 5);
// ⇒ true
Try in REPL