At the entrance I have such an array with objects. Function that converts an incoming array of objects into an object. Using the function, I need to bring it to this form.
var array = [ 
   { k1:v1 },
   { k2:v2 },
   { k3:v3 }
];
function arrayToObject(array) { return object }
var object = { 
    v1: k1,
    v2: k2,
    v3: k3, 
}