Function: isFn()

isFn(val): val is Function

Checks if the given value is a function.

Parameters

val

unknown

The value to be checked.

Returns

val is Function

Returns true if the value is a function, false otherwise.