title: Will typescript wait for a loop to complete before executing the next code?
body: <p>I'm trying to wrap my head around async methods.  Other actions don't wait for async methods unless you use await.</p>
  
  <p>What about for loops?  Does typescript wait for the completion of a for loop before proceeding?</p>
  
  <p>Example:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>   mergeQueries(start, end) {
       for (let i = 0; i &lt; end.length; i++) {
          if ((start.includes(end[i].id)) &amp;&amp; (!this.dontShowList.includes(end[i].id))) {
              this.allItineraries.push({
                id: end[i].id,
                startDate: end[i].startDate,
                endDate: end[i].endDate,
                userId: end[i].userId,
              });
          }
       }
       if (this.allItineraries.length &lt; 1) {
         console.log('presentAlertInformation');
         this.presentAlertInformation();
       }
     }</code></pre>
  </div>
  </div>
  </p>
  
  <p>at the end of the query I'd like to evaluate this.allItineraries after the for loop.  It may take a while if it's processing 10's of thousands of users.  if the length is &lt; 1 I'd like to present an alert but will it wait until the completion of the for loop?</p>