I have an object
myObject = {
10: "some value",
15: "another value",
...
}
can I with underscore, jquery, or plain js convert it into a list as:
myList = [
{ label: 10, value: "some value" },
{ label: 15, value: "another value" },
...
]