Convert Array to Object
ECMAScript 6 introduces the easily polyfillable Object.assign: The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object. The own length property of the array is not copied because it isn’t enumerable. Also, you can use … Read more