I have an arrow of dynamically generated data. The format I have is:
const myRow = [
[{ id: 0},{title: "Task 1"}, { complete: 20}],
[{ id: 1},{title: "Task 2"}, { complete: 40}],
[{ id: 2},{title: "Task 3"}, { complete: 40}],
]
Desired row data structure is
const rows = [
{ id: 0, title: "Task 1", complete: 20 ,completed: 690},
{ id: 1, title: "Task 2", complete: 40 ,completed: 690},
{ id: 2, title: "Task 5", complete: 60 ,completed: 690},
{ id: 3, title: "Task 3", complete: 690 ,completed: 690}
];
Most of the solutions I have tried just turns the value to strings which doesn't work for me