I am trying to get a normal array result like in the log at line 217, but I am getting a weird object that I can’t get values from on my log at line 213.
I just want to get a simple normal array that I can pick values from. I am parsing data from a google sheets file.
Here’s my code:
function sheetExtract() {
fetch(url)
.then(res => res.text())
.then(rep => {
const refinedData = JSON.parse(rep.substr(47).slice(0, -2));
refinedData.table.rows.forEach((main) => {
const group = Object.values(main);
console.log(group); //Gives me the weird object
});
});
}