var array1 = ["column1", "column2", "column3"]
var array2 = ["infor1", "infor2", "infor3"]
var obj = {};
array1.forEach(function(y, z) {
obj[y] = array2[z];
});
console.log(obj)
0
solved How to set array to object keys javascript [duplicate]