Javascript/JQuery: return immediately from PARENT function in call to each() via anon function
<p>For example:</p>

<pre><code>&gt; function foo() {
&gt;    jQuery(whatever).each( function() {
         return; // this just exits the anonymous function - is there a way to return from foo?
     }
   );
&gt; 
&gt; }
</code></pre>
