title: How to break ForEach Loop in TypeScript
body: <p>I have a the below code, on which i am unable to break the loop on certain conditions.</p>
  <pre><code> isVoteTally(): boolean {
  
  
   let count = false;
      this.tab.committee.ratings.forEach(element =&gt; {
  
        const _fo = this.isEmptyOrNull(element.ratings.finalOutcome.finaloutlook);
        const _foreign = this.isEmptyOrNull(element.ratings.finalOutcome.foreign);
        const _local = this.isEmptyOrNull(element.ratings.finalOutcome.local);
        const _tally = element.ratings.finalOutcome.voteTally.maj + element.ratings.finalOutcome.voteTally.dis;
  
        if (_fo == false &amp;&amp; _foreign == false &amp;&amp; _local == false) {
          if (_tally &gt; 0) {
            **return count = false;**
          }
        } else {
          if (_tally &lt; 0) {
            **return count = false;**
          }
        }
      });
      return count;
    }
  </code></pre>
  <p>On the star-marked area, i want to <em>break</em> the code and return the boolean value, but i am unable to do it right now. Can anybody help me.</p>
  <p>Thanks in advance.</p>