title: better approach of finding a variable is function?
body: <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>