I have an object like this:
customers:
{
239:
{
firstname : "Peter",
lastname : "Johnson"
},
242:
{
firstname : "Peter",
lastname : "Johnson"
},
etc...
}
How can I iterate to get all firstnames, preferably using jQuery? The numbered ID's are not necessarily in sequence.
$.each(customers, function(index, item) { console.log(item.firstname);});.mapworks witharray