title: NodeJS async for each object in array
body: <p>My problem is that i've got 1 array with multiple objects.
  And i need to do stuff for all those single objects in that array.
  Async</p>
  
  <p>But it doesn't work?</p>
  
  <p>Code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>console.log('Data: ' + data);
  
  async.eachSeries(data, function (item, callback3) {
   console.log(item.id);
   callback3('0');
  }, function done(err) {
   console.log('done');
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>And this is what the server loggs:</p>
  
  <pre><code>[root@bravo servers]# node app.js
  [ { id: 1,
      ownerid: 11,
      topicid: 1,
      content: 'First comment',
      date: Sun Jun 21 2015 23:18:05 GMT+0200 (CEST) },
    { id: 2,
      ownerid: 11,
      topicid: 1,
      content: 'Another test',
      date: Mon Jun 22 2015 00:18:34 GMT+0200 (CEST) } ]
  1
  done
  </code></pre>
  
  <p>As you can see it's not doing the second one its right going to the done function?</p>