Suppose I have any variable, which is defined as follows:
var a = function() {/* Statements */};
I want a function which checks if the type
Since node v0.11 you can use the standard util function :
var util = require('util'); util.isFunction('foo');