Checks if the provided instance is a function.
The instance to be checked.
true if the instance is a function, false otherwise.
true
false
const func = () => {};const obj = {};console.log(isFn(func)); // trueconsole.log(isFn(obj)); // false Copy
const func = () => {};const obj = {};console.log(isFn(func)); // trueconsole.log(isFn(obj)); // false
Generated using TypeDoc
Checks if the provided instance is a function.