Say for example I had an object map of the following:
{
"key1" : { data: "data1", extra: "none" },
"key2" : { data: "data2", extra: "none" },
"key3" : { data: "data3", extra: "none" },
"key4" : { data: "data4", extra: "none" },
};
Is there a convenient way to convert it to an array something like this:
[
{ "key1" : { data: "data1", extra: "none" }},
{ "key2" : { data: "data2", extra: "none" }},
{ "key3" : { data: "data3", extra: "none" }},
{ "key4" : { data: "data4", extra: "none" }},
];
I have a function that requires an array, yet the data I'm receiving from a 3rd party plugin is in object arrays. It would be nice if there was some simple way to get the conversion done between the two.