advantage of $.each method over for..in loops?
<p>Various JavaScript libraries (e.g. jQuery) offer an <code>each</code> method:</p>

<pre><code>$.each(myObj, myFunc);
</code></pre>

<p>What's the advantage over using the built-in <code>for..in</code> loop:</p>

<pre><code>for(var i in myObj) {
    myFunc(i, myObj[i]);
}
</code></pre>

<p>In both cases I'd have to check for unwanted properties (usually functions), so I don't see why the each method is provided in the first place.</p>
