title: Javascript - how to start forEach loop at some index
body: <p>I have an array with alot of items, and I am creating a list of them. I was thinking of paginating the list. I wonder how can I start a <code>forEach</code> or <code>for</code> loop at some <code>index</code> in an array, that would be in my example the number of items in the list on each page, so that I don't need to iterate over the whole array in each loop?</p>
  
  <pre><code>arr.forEach(function (item) {
    someFn(item);
  })
  
  
  for (var i = 0, len = arr.length; i &lt; len; i++) {
    someFn(arr[i]);
  }
  </code></pre>