title: using map to iterate over an object that is inside of an array
body: <p>Here is my code:</p>
  <pre><code>class SomeClass{
      constructor(props){
          super(props);
             this.state = {
                SomeElement:
                [
                  {
                     AAAQQQ: &quot;&quot;,
                     AAA: &quot;&quot;
                  },
                ],
                errorMessage: &quot;&quot;
             };
         }
  
      MyFunction = (someParam) =&gt;{
        //do something
      }
  
  }
  
   
  </code></pre>
  <p>I can access errorMessage by doing:</p>
  <blockquote>
  <p>this.state.errorMessage</p>
  </blockquote>
  <p>But for accessing AAAQQQ, do I say:</p>
  <pre><code>this.state.SomeElement.map((item, index) =&gt;{
      SomeFunction(item.AAAQQQ);
  });
  </code></pre>
  <p><strong>My Question</strong>:</p>
  <p>Is the above approach correct to access an element inside of an array of objects ?</p>