How can I check if a javascript variable is function type?
<p>Suppose I have any variable, which is defined as follows:</p>

<pre><code>var a = function(){/* Statements */};
</code></pre>

<p>I want a function which checks if the type of the variable is function-like. i.e. :</p>

<pre><code>function foo(v){if(v is function type?){/* do something */}};
foo(a);
</code></pre>

<p>How can I check if the variable 'a' is of type function in the way defined above?</p>
