How to convert primitive array into object array with key and value?

Sir i have added a new question which explains very well i am sorry for the disturbance please check this question out:

1 Like