How does this function determine of an object is empty?
<p>I was digging around the jQuery source code and I found that they use this little code snippet to detect if a JavaScript object is empty.</p>

<pre><code>function isMyObjEmpty( obj ) {
    var name;
    for (name in obj ) {
        return false;
    }
    return true;
}
</code></pre>

<p>Can someone explain to me why this works? I just don't understand why this would ever return true.</p>
