title: Iterate over array of objects in Typescript
body: <p>I need to iterate over the array of objects in angular 2 and limit the string length display for a particular key in the object.</p>
  <pre><code>this.productService.loadAllProducts(product).subscribe(data =&gt; {
        if (this.authService.checkActiveSession(data)) {
          if (data.success) {
           //console.log(this.product_desc.substring(0,2))
               for(let i=0;i&lt;data.products.length ;i++){  //How to properly iterate here!!
               console.log(data.products[0].product_desc)
            }
            this.source.load(data.products);
           } else {
            console.log('Not binded');
          }
        }
      });
    } 
  </code></pre>
  <p>I need to limit the prod_desc length to (say) 10 characters while displaying for which I have used:</p>
  <p>Eg:</p>
  <pre><code>this.product_desc.substring(0,10)
  </code></pre>