I have built an array in console. I wanted to copy this array to Google spreadsheet.

As you can see from the image the order is different in console.table and
console.log
I would like to keep the order same so that I don't need to reorder them while copying to Google spreadsheets.
Has anybody experienced this issue? Would like to know if there are easier ways to copy the data from console.table to Google spreadsheets.
Marco Alka
Software Engineer, Technical Consultant & Mentor
Huh, I don't really see a difference except for the sorting. I never copied data to a Google spreadsheet, but I guess you could just create a csv and paste it to the spreadsheet...
[{},{}].reduce((acc, line) => acc + Object.values(line).join(',') + '\n', '')