title: Loop through array with objects
body: <p>I have the following problem which i can't solve for 2 days now. I have an <a href="https://i.stack.imgur.com/eciF3.png" rel="nofollow noreferrer">array</a>.</p>
  
  <p>And I try to loop over it with next for..in loop</p>
  
  <pre><code>for (var key in products2) {
      if (products2.hasOwnProperty(key)) {
          console.log(products2[key].properties);
      }
  }
  </code></pre>
  
  <p>But I can't output the value of properties object. This array is a list of products and each product has own properties.</p>