title: Accessing Arrays From Object
body: <p>I feel like this is a basic question but everything I try is not working. I am trying to access Arrays that are nested inside object. </p>
  
  <p>When do <code>console.log(response.data)</code> I will get a Object with Arrays inside</p>
  
  <pre><code>{
    scanned: [],
    complete: [],
    received: [],
    review: [],
  }
  </code></pre>
  
  <p>But if i then try to access one of the arrays with <code>console.log(response.data.scanned)</code> I will get <code>undefined</code></p>
  
  <p>My question is how do I access Arrays nested in Object? is this even possible?</p>
  
  <p>*Update
  Here is the response I get with just <code>console.log(response)</code>
  <a href="https://i.stack.imgur.com/l4vY9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l4vY9.png" alt="enter image description here"></a></p>
  
  <p>Here is the response for <code>console.log(response.data)</code>
  <a href="https://i.stack.imgur.com/eRYBk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eRYBk.png" alt="enter image description here"></a></p>
  
  <p>Now if I try <code>console.log(response.data['scanned'])</code> it will still give me undefined</p>
  
  <p>If I try <code>console.log(response['data.scanned'])</code> or <code>console.log(response['data']['scanned'])</code> will alse give me undefined</p>