object = {
'AAA' : [1, 2, 3],
'BBB' : [4, 5, 6]
}
I have an object that looks like this but I need to convert it into an array of array that looks like:
arr = [['AAA', 'BBB'],
[1, 4],
[2, 5],
[3, 6]]
To be pass-able to the excel library that I am using.
What is a good way to convert the format like that in Javascript?