I have a dictionary structure as follows :
data = { a : [5, 10], b : [1, 12] , c : [6, 7]}
I need to convert this to follows :
[ a, 5, 10 ], [ b, 1, 12 ], [ c, 6, 7 ]
I've already tried using Object.entries(data), but it returned the data like : [a, [5, 10]], [b, [1, 12]]
How can i do this using JavaScript?