I would like to know the best method for grabbing values from nested objects like this one:
var object = {
1: {
1: {
"names": "bob"
},
2: {
"names": "jim"
}
}
}
What function or loop would I write to push the values “bob” and “Jim” into an array?
Thank you in advance!