Test if a value is a function.
var isFunction = require( '@stdlib/utils/is-function' );
Tests if a value
is a function
.
var value = function beep(){};
var bool = isFunction( value );
// returns true
var isFunction = require( '@stdlib/utils/is-function' );
console.log( isFunction( function foo(){} ) );
// returns true
console.log( isFunction( {} ) );
// returns false