title: Iterating Through Collections in BackboneJs, is for faster than forEach?
body: <blockquote>
    <p>Iterating Through Collections: Although you can use a simple for loop
    to iterate through your collection as follows:</p>
  </blockquote>
  
  <pre><code>//a simple loop
  for(var i = 0; i &lt; myLibrary.length; i++){
  var model = myLibrary.at(i);
  console.log('Book ' + i + ' is called ' + model.get('name'));
  }
  </code></pre>
  
  <blockquote>
    <p>there is a more elegant utility function provided by Underscore that
    helps iterate through collections, namely, the forEach function.</p>
  </blockquote>
  
  <pre><code>//using forEach
  myLibrary.forEach(function(model){
  console.log('Book is called ' + model.get('name'));
  });
  </code></pre>
  
  <p>Which one is better performance-wise</p>