title: Know if the first function on the caller javascript stack
body: <p>I have the following code:</p>
  
  <pre><code>$(document).ready(funcA);
  
  function funcA(){
      funcB();
  }
  
  function funcB(){
      //some code
  }
  </code></pre>
  
  <p>On the <code>funcB</code>, I want to know if it was called by the <code>$(document).ready</code> event or not.</p>
  
  <p>It is any way I can do this?</p>