I'm struggling with retrieving an array
from within an object
. The structure is shown below:
[]
0: Array(4)
0: 0
1: 5
2: 500
3: (5) [{…}, {…}, {…}, {…}, {…}]
Despite attempting methods like using object.keys
, for
loops, and foreach
loops, I haven't been successful in finding a solution. The output when using console.log(object)
matches the example provided. However, console.log(object.length)
outputs 0
, even though the type remains as an object
. Any assistance on resolving this issue would be greatly appreciated.