I am working with an object that looks like this:
var myObj = {
a: 1,
b: 2,
c: 3,
d: 4
};
My goal is to convert this object into a multi-dimensional array structured like this:
var myArray = [['a', 1], ['b', 2], ['c', 3], ['d', 4]];
What would be the best way for me to accomplish this task?