If I have a JS object like:

var foo = { 'bar' : 'baz' }

If I know that foo has that basic key/value structure, but don’t know the name of the key, what’s the easiest way to get it? for ... in? $.each()? I hope there’s something better….

19 Answers
19

Leave a Reply

Your email address will not be published. Required fields are marked *