Given an object like this:
{ name: \"joe\" }
I want to get the value \"name\". I know I can use the for construct to iterate over the prope
This seems to be about the best you can get:
function myFunc(v) { for (var x in v) { return { prop: x, val: v[x] }; } return null; };