Object:
Info: Array(2)
0:
> minsuInfo: Array(2)
0:
> dailyValue(2) :
0: Status: 20%
1: Status: 40%
1:
> dailyValue(2):
0: Status: 40%
1: Status: 15%
1:
> minsuInfo: Array(2)
0:
> dailyValue(2) :
0: Status: 60%
1: Status: 10%
1:
> dailyValue(2):
0: Status: 40%
1: Status: 55%
const apple = Info.minsuInfo.map(array => array.dailyValue.Status)
return (
<div>
<p>{apple}</p> // undefined
</div>
)
I want to print all Status values.
const apple = Info.minsuInfo.map(array => array.dailyValue.Status)
I expected this.
console.log(apple) // 20% 40% 40% 15% 60% 10% 40% 55%
But now I get undefined .
console.log(apple) // undefined
How should I modify the code?