title: Javascript - do something every x number of iterations in loop
body: <p>I'm using the Google Maps API which has a limit of 10 requests per second. I want to have a short delay every 10 requests.</p>
  
  <pre><code>for (var i = 0; i &lt; myRequests.length; i++) {
     // pause every 10 iterations 
  }
  </code></pre>
  
  <p>My maths aren't sharp... How can I know whenever I reach 10 iterations in order to do something?</p>