title: continue a for loop outside of a promise
body: <p>so let's say I have something like this:</p>
  <pre><code>var x = 2;
  for(var i = 0; i &lt; 10; i++) {
     new Promise(async (resolve, reject) =&gt; {
          if(someFunctionThatChecksX(x)) {
             continue;
           }
        }
  }
  </code></pre>
  <p>I can't use continue because &quot;jump target cannot cross function boundaries&quot; and need a way around that to continue the for loop when that function that checks X results in true. Thanks so much for any assistance.</p>