title: How to iterate array inside object without loop using NodeJS
body: <p>I tried to iterate array inside object value without loop.but I got undefined value output.</p>
  <p><strong>sample.js</strong></p>
  <pre><code>data = [{'product_name':&quot;hari&quot;},{'product_name':&quot;main&quot;}]
  console.log(data.product_name)
  </code></pre>
  <p><strong>Expected output</strong></p>
  <pre><code>hari
  main
  </code></pre>
  <p><strong>I got output</strong></p>
  <pre><code>undefined
  </code></pre>