title: Foreach is not working in Typescript
body: <p>How can I use foreach for this? I would like to display all the names.</p>
  
  <pre><code>test: [{
      id: "1",
      name: "Tname1"
  }, {
      id: "2",
      name: "Tname2"
  }]
  </code></pre>
  
  <p>It doesn't work:</p>
  
  <pre><code>this.test.forEach(function(s){
      console.log(s.name);
  });
  </code></pre>