Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get first object key javascript

var example = {
    foo1: { /* stuff1 */},
    foo2: { /* stuff2 */},
    foo3: { /* stuff3 */}
};

let [first] = Object.keys(example)

console.log(first)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #object #key #javascript
ADD COMMENT
Topic
Name
2+6 =