Check if there are more elements to come in $.each()
<p>I am using the <code>$.each()</code> method of jQuery to loop over a couple of objects. Is there a way to find out if there are more objects to come in the <code>$.each()</code> method?</p>

<p>Something like:</p>

<pre><code>$.each(data, function(o, myObject) {
    if(data.hasMoreObjects) {
        // append something 
    } else {
        // append nothing
    }
});
</code></pre>
