When I console.log an array who contains objects in VS code terminal,
console.log(`new array is ${state.chats}`);
I get a result like that :
new array is [object Object],[object Object],[object Object],[object Object]
Instead of normal tree where you can see the objects inside like in Chrome Dev Tools :
new array is: [
{ sender: "joseph", message: "my text" },
{ sender: "daniel", message: "my text" },
{ sender: "joseph", message: "my text" }
]
Any way to "fix"/modify this behavior?