Is there an elegant way to access the first property of an object...
The top answer could generate the whole array and then capture from the list. Here is an another effective shortcut
var obj = { first: 'someVal' }; Object.entries(obj)[0][1] // someVal