I have an object with array of values
{firstName: ['John', 'Mike']}, lastName: ['Doe', 'Smith']},
Now i have an empty object with array
const newData = {}
newData.ppl = []
how can I have this result in ppl array like: ppl = [{firstName: 'John', lastName: 'Doe'}, {firstName: 'Mike', lastName: 'Smith'}]