Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get first property from object javascript

obj = { key:"value" }
Object.values(obj)[0] //returns "value"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #property #object #javascript
ADD COMMENT
Topic
Name
5+8 =