Hello, I am facing some difficulties with regards to javascript in converting my data.
may i know if there is any method in converting from array in picture (1) to array as shown below. ?
target array format as following
[
{
"data":
[
[
"Date",
"Customer Name",
"Purchase Item",
"Quantity",
"Price"
],
[
"14-Oct-2022",
"Super 1",
"Rubber",
5,
10
],
[
"14-Oct-2022",
"Super 2",
"Pencil",
4,
20
],
[
"14-Oct-2022",
"Super 3",
"Paper",
3,
30
],
[
"14-Oct-2022",
"Super 4",
"Ruler",
2,
40
]
]
}
]