SyntaxFix
Write A Post
Hire A Developer
Questions
If you want something concise try:
for (first in obj) break; alert(first);
wrapped as a function:
function first(obj) { for (var a in obj) return a; }