I have this code where it will log the value into the console
const table = { index: 0,
data: {items:[
{students: {name: Gloria, age: 24, gender: female} , id: 025},
{students: {name: Alex, age: 27, gender: male} , id: 024}],
total: 2}
}
const result = table.data.items.map(Object.values);
console.log(result);
and the console will appear as
[[{name: Gloria, age: 24, gender: female} , 025],
[{name: Alex, age: 27, gender: male} , id: 024]]
The only problem is I want only the values to appear such as
[[{Gloria, 24, female}, 025],
[{Alex, 27, male}, 024]
can somebody tell me what is wrong in here?