Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript object first key

var person = {"name":"Steve","age":43};
var firstKeyValue = person[Object.keys(person)[0]]; //"Steve"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #object #key
ADD COMMENT
Topic
Name
3+1 =