Skip to content
On this page

isFunction

Identifies if a value is a function.

Type Definitions

ts
/**
 * @param val - The value.
 * @returns If the value is a function.
 */
export declare function isFunction<T extends Fn>(val: unknown): val is T
1
2
3
4
5