Looking to transform an object with the following structure:
{ From: {"A","B","C"}, To: {"A1","B1","C1"}, value: {1,2,3} }
I need to convert this array:
[
{from: "A" ,to: "A1" , value: 1 },
{from: "B" ,to: "B1" , value: 2},
{from: "C" ,to: "C1" , value: 3 }
]
Any suggestions on how to achieve this conversion in JavaScript code?