isFunction source npm

_.isFunction(value)

Checks if value is classified as a Function object.

Arguments

  1. value (*)

    The value to check.

Returns (boolean)

Returns true if value is correctly classified, else false.

Example

_.isFunction(_);
// => true

_.isFunction(/abc/);
// => false