I have this array of objects
[{
"A": "thisA",
"B": "thisB",
"C": "thisC"
}, {
"A": "thatA",
"B": "thatB",
"C": "thatC"
}]
I'm trying to get this format as an end result: [["thisA","thisB","thisC"], ["thatA","thisB","thatC"]]
I know we can use map() function with the specific key(A, B, C).
newarray = array.map(d => [d['A'], d['B'], d['C']])
But I need a common function to transfer it without using the key, because the content of array will be different, the key will be different. Is there any good solution?