better approach of finding a variable is function?
<p>Which one is better approach to find whether a variable is of type function</p>

<pre><code>typeof(methodName) == typeof(Function)
</code></pre>

<p>or </p>

<pre><code>typeof methodName === 'function'
</code></pre>
