array how to take first object in js code example
Example: js get first object value
var obj = { first: 'someVal' };
obj[Object.keys(obj)[0]]; //returns 'someVal'
var obj = { first: 'someVal' };
obj[Object.keys(obj)[0]]; //returns 'someVal'