title: How to iterate through controls array property from Forms in Angular
body: <p>I have the following problem I need to iterate through the controls property of a Form in Angular using a forEach loop. I am writing the following code:</p>
  
  <pre><code>const arr = this.bankForm.controls;
  arr.forEach((element: {[key: string]: AbstractControl}) =&gt; {
  
  });
  </code></pre>
  
  <p>And I have the next error:</p>
  
  <p><a href="https://i.stack.imgur.com/hSzQf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hSzQf.png" alt="enter image description here"></a></p>