title: Go to "next" iteration in JavaScript forEach loop
body: <p>How do I go to the next iteration of a JavaScript <code>Array.forEach()</code> loop?</p>
  
  <p>For example:</p>
  
  <pre><code>var myArr = [1, 2, 3, 4];
  
  myArr.forEach(function(elem){
    if (elem === 3) {
      // Go to "next" iteration. Or "continue" to next iteration...
    }
  
    console.log(elem);
  });
  </code></pre>
  
  <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach" rel="noreferrer">MDN docs</a> only mention breaking out of the loop entirely, not moving to next iteration.</p>