thanks for your answers, my problem is the following, I have this array of objects:
var rowsData = [
{"id": 1, "name": "darinel", "age": "2"},
{"id": 2, "name": "yair", "age": "24"},
{"id": 3, "name": "Daniel", "age": "24"},
{"id": 4, "name": "Saul", "age": "24"}
];
I want to get from rowsData an array of arrays as follows (The values of rowsData):
[
[1, "darinel", "2"],
[2, "yair", "24"],
[3, "Daniel", "24"],
[4, "Saul", "24"]
]
I am trying as follows:
columsActive () {
this.rowsData.map ((row) => this.testRows.push (Object.values (row)))
}
Where rowsData contains my array of objects and testRows is an empty array where I try to put the values with Object.values however this does not work at least in vueJs and it returns the same array of array of objects in testRows. Thank you very much in advance for any advice or link to any documentation, I would greatly appreciate it.