Home > other >  ReactJS and MongoDB Accessing Object Property Value
ReactJS and MongoDB Accessing Object Property Value

Time:01-03

console.log(res.data.data.wallet.transactions);

How can I get transactions[] > 0{} > balance property's Value enter image description here

console.log(res.data.data.wallet.transactions["0"].balance); ???

CodePudding user response:

Solution :

 console.log(res.data.data.wallet.transactions[0][0].balance);
  • Related