Skip to content

isFunction

isFunction(target)

Checks if a value is a function.

ts
isFunction(() => {}); // true
isFunction("not a function"); // false
ts
pipe(() => {}, isFunction()); // true
pipe("not a function", isFunction()); // false