For example,
I have a total of two arrangements.
The key array has keys.
The remaining arrays are multi arrays in one array like [[A], [B], [C], ...]
So how do we put objects in one array?
let key = [“name”, “age”, “country”];
let values = [["james", "23", "US"],["steve", "20", "UK"], ...]
** expect result **
result = [
{
"name": "james",
"age": 23,
"country": "US"
},
{
"name": "steve",
"age": 20,
"country": "UK"
},
...
]