var obj = {
collectors: {
name: 'collector name',
item: 21,
type: 'шт',
summ: 1323
},
flor: {
name: 'flor name',
item: 43,
type: 'ед',
summ: 3242342
},
plate: {
name: 'plate name',
item: 211,
type: 'кг',
summ: 423442
}
};
['Наименования', 'кол-во', 'ед.изм', 'цена'],
for (const k in obj) {
obj[k] = Object.values(obj[k]);
}
const newObj = Object
.keys(obj)
.reduce((acc, k) => (acc[k] = Object.values(obj[k]), acc), {});
// или
const newObj = Object.fromEntries(Object
.entries(obj)
.map(n => [ n[0], Object.values(n[1]) ])
);