How to convert array in Object in JavaScript? - Stack Overflow

How to convert array in Object in JavaScript? - Stack Overflow