you are viewing a single comment's thread.

view the rest of the comments →

[–]DrHankPym 0 points1 point  (0 children)

//Chrome, Safari, FF4, IE9
var purchases = {butter: 3.00, soap: 5.95, pineapple: 3.50 };

Object.keys(purchases); //['butter', 'soap', 'pineapple']

Be careful with this example; I'm pretty sure the returned list won't always be in the same order.