I am trying to narrow down a selection from an object* in my console log. My code is simply:
console.log(x)
and what is being returned is as follows: result
Referencing the example image, if I wanted to call "0.filename" how would I go about navigating this returned structure.
*Apologies if object is the wrong term for what is being returned.
your object x have many attribute and an array filesUploaded you must use:
console.log(x.filesUploaded[0].filename)
because filesUploaded is an array so if you want to show all filename you must use loop for it.