I have a simple object that always has one key:value
like var obj = {'mykey':'myvalue'}
What is the fastest way and elegant way to get the value without really doing this?
for (key in obj) {
console.log(obj[key]);
var value = obj[key];
}
Like can I access the value via index 0 or something?