Skip to content

isFunction

Return true if the given value is a function.

Usage

isFunction(0); // => false
isFunction(() => {}); // => true
isFunction(function () {}); // => true
isFunction(async function () {}); // => true
isFunction(class {}); // => false

Installation

Terminal window
npx atmx add helper is-function