I am working with an array displayed by console.log(temp) in the following format:
temp = [{name: "Request A", data: "1"}
{name: "Request B", data: "12"}
{name: "Request C", data: "6"}]
If I want to change the format of my array to look like this:
temp: [{name: "Request A", data: [1]}
{name: "Request B", data: [12]}
{name: "Request C", data: [6]}]
I need some assistance in achieving this. Thank you.