Is there an elegant way to access the first property of an object...
If you need to access "the first property of an object", it might mean that there is something wrong with your logic. The order of an object's properties should not matter.