I have a simple object that always has one key:value like var obj = {\'mykey\':\'myvalue\'}
key:value
var obj = {\'mykey\':\'myvalue\'}
What is the fastest way and elegant way to get
function firstProp(obj) { for(var key in obj) return obj[key] }