I am trying to convert an array to an object based on whether the index of array is odd or even.I am trying to convert an array to an object ba
I am trying to convert an array to an object based on whether the index of array is odd or even.I am trying to convert an array to an object ba