попробуй так
const build = (arr, template) => {
const keys = Object.keys(template);
return arr.map(data => {
return keys.reduce((acc, key, i) => {
return {
...acc,
[key]: data[i]
}
}, {})
})
}
let arr = [
[1, 2, 3, 4, 5, 6],
[4, 5, 6, 2, 1, 5]
];
let obj = {
summ: false,
age: false,
o: false,
name: false,
stat: false,
door: false
}
const result = build(arr, obj);
console.log(result);