There isn't a "first" property. The properties of an object are unordered.
You can get whatever one the JS engine decides to provide first with a loop.
function maybe_first_in_object(ob) {
for (var props in ob) {
return prop;
}
}
… but if the order matters, use an array not an object.