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.
When do console.log(response.data)
I will get a Object with Arrays inside
{
scanned: [],
complete: [],
received: [],
review: [],
}
But if i then try to access one of the arrays with console.log(response.data.scanned)
I will get undefined
My question is how do I access Arrays nested in Object? is this even possible?
*Update
Here is the response I get with just console.log(response)
Here is the response for console.log(response.data)
Now if I try console.log(response.data['scanned'])
it will still give me undefined
If I try console.log(response['data.scanned'])
or console.log(response['data']['scanned'])
will alse give me undefined