I had an array
[{0:{title:"test1"}},{1:{message1:"message1"}},{2:{message2:"message2"}}]
I want to get an Object in below format
{title:"test1",message1:"message1",message2:"message2"}
I am trying with below code but no luck
var rv = {};
for (var i = 0; i < messageArray.length; ++i)
if (...