Below is the JavaScript Object:
var dataObject = {
object1: {id: 1, name: "Fred"},
object2: {id: 2, name: "Wilma"},
object3: {id: 3, name: "Pebbles"}
}
Can anyone tell me how to efficiently extract inner objects into an array, without having to maintain handles on the object[n] IDs?
var dataArray = [
{id: 1, name: "Fred"},
{id: 2, name: "Wilma"},
{id: 3, name: "Pebbles"}]