function/isFunction

Checks whether a value is a function.

Source:

Methods

(static) isFunction(value) → {boolean}

Source:
Example
import { isFunction } from '@untemps/utils/function/isFunction'

isFunction(() => {}) // true
isFunction(42) // false
Parameters:
Name Type Description
value *

The value to check.

Returns:

true whether the value is a function.

Type
boolean