title: In Meteor using #each, check if 'last' element in the collection reached
body: <p>I'm iterating through a collection in Meteor using {{#each}} and I would like to know if I'm in the last element, as I can do in AngularJS while using ngRepeat with $last.</p>
  
  <p>It could be used, for example to construct human readable enumerations like 'I like cats, dogs and dolphins' :</p>
  
  <pre><code>Template.myTemplate.helpers({
      likedAnimals: function(){return ['dogs','cats','dolphins'];}
  });
  
  &lt;template name='myTemplate'&gt;
      I like  
      {{#each likedAnimals}}
          {{#if !$first &amp;&amp; !$last}}, {{/if}}
          {{#if $last}} and {{/if}}
          {{this}}
      {{/each}}
  &lt;/template&gt;
  </code></pre>
  
  <p>Is there any way to check this condition in Meteor?</p>