I searched online and read up on the Lodash documentation, but could not find a quick fix to this.
Basically, I have two arrays
var employee = ["John", "Mary"];
var location = ["APAC", "singapore"];
And eventually I would like to have a Json object that look like this:
var obj = {
"profile": [
{
"name": "John",
"location": ["APAC","Singapore"]
},
{
"name": "Mary",
"location": ["APAC","Singapore"]
}
]
}
"Mary"
missed?