SyntaxFix
Write A Post
Hire A Developer
Questions
This will not give you the first one as javascript objects are unordered, however this is fine in some cases.
myObject[Object.keys(myObject)[0]]