Convert array object in angular

Need to convert array objects given below

[{ key:"url", value:"new" },{ key:"page", value:1 }]  // after (need to convert like this)
{ url:"new", page:1 }  // before

100 thoughts on “Convert array object in angular”

Leave a Comment