Suppose I have any variable, which is defined as follows:
var a = function() {/* Statements */};
I want a function which checks if the type
An other simply way:
var fn = function () {} if (fn.constructor === Function) { // true } else { // false }