I have pulled down from firebase and been given a payload of an array with 3 objects inside which themselves contain objects.
Consider the following screenshot:
This is what happens when i console.log my months array.
how do i iterate through this to log out any information i want from inside the object?
for example i want whats inside month and inside p1, p2.
i have tried to do
this.state.months.map()
and then to log month.month
but that returns undefined.
any ideas?