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….
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….