title: How iterate through two array in a object using Template helpers in Meteor.js
body: <p>My HTML resembles this </p>
  
  <pre><code>&lt;template name="stop"&gt;  
     {{#each thumb}}
  
    &lt;tr&gt;
      &lt;td class="image" &gt;&lt;img src="{{this.data}}"&gt;&lt;/td&gt;
      &lt;td&gt;
       &lt;center style="float:right; margin-bottom: 25%;"&gt;    
         &lt;h2&gt; Do you like this product? &lt;/h2&gt;
  
         &lt;h2&gt;{{this.text}}&lt;/h2&gt;&lt;/center&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    {{/each}}
  
  &lt;/template&gt;
  </code></pre>
  
  <p>And this template refers to my template helper which look like this </p>
  
  <pre><code>Template.stop.helpers( {
          'thumb': function(data) {
              console.log(z);
              return tweetImages.findOne()
          })
  </code></pre>
  
  <p>tweetImage.findOne() outputs this </p>
  
  <pre><code>Object {_id: "1", data: Array[7], text: Array[7]}
  </code></pre>
  
  <p>I'm trying to iterate through each item in both of the arrays for each time the template run but instead all the 7 values for each array get outputted each time. I know the contextual variable this is need somewhere but I cannot work it out. Would anyone have any ideas?</p>