title: How to Find Out Last Index of each() in jQuery?
body: <p>I have something like this...</p>
  
  <pre><code>$( 'ul li' ).each( function( index ) {
  
    $( this ).append( ',' );
  
  } );
  </code></pre>
  
  <p>I need to know what index will be for last element, so I can do like this...</p>
  
  <pre><code>if ( index !== lastIndex ) {
  
    $( this ).append( ',' );
  
  } else {
  
    $( this ).append( ';' );
  
  }
  </code></pre>
  
  <p>Any ideas, guys?</p>