Nodejs Function Type Check isFunction(functionToCheck)

Here you can find the source of isFunction(functionToCheck)

Method Source Code

function isFunction(functionToCheck) {
    var getType = {};
     return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
}