Skip to Content
GuardisFunction

isFunction

Check whether the given value is a functions or not

Import

import { isFunction } from '@fullstacksjs/toolbox';

Signature

function isFunction(x: unknown): x is Function {}

Examples

isFunction(() => 1) // true isFunction(undefined) // false isFunction(true) // false isFunction('string') // false
Last updated on