Skip to main content

isFunction

Validates if the supplied input is a function.

Signature

isFunction(input: any): boolean

Parameters

NameTypeOptionalDescription
inputanyNoInput to validate.

Return value

Returns true if the input is a function.

Example

import { isFunction } from "tripetto-runner-foundation";

isFunction(() => {}); // Returns `true`