Given these two arrays,
arrName = ['john','marry','sean'];
age = [20,19,31];
How can I combine them into an array of objects like this:
[
{
"name": "John",
"age": 20
},
{
"name": "marry",
"age": 19
},
{
"name": "sean",
"age": 31
}
]