Convert Array to object with custom keys in JavaScript
I have array which I want to convert to object . Like ['jonas','0302323','jonas84@gmail.com]
. Now what I want to achieve I want to convert array into object and I want to assign custom keys into that object .
Expected Result : {name:'Jonas',phone:84394934,email:jonas84@gmail.com}
. I am beginner to JS could somone please help me
from Recent Questions - Stack Overflow https://ift.tt/35BCl0w
https://ift.tt/eA8V8J
Comments
Post a Comment