Suppose I have any variable, which is defined as follows:
var a = function() {/* Statements */};
I want a function which checks if the type
var foo = function(){}; if (typeof foo === "function") { alert("is function") }