Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How can I find the keys of an object?

var obj = { "a" : 1, "b" : 2, "c" : 3};
alert(Object.keys(obj)); 
// will output ["a", "b", "c"]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #I #find #keys
ADD COMMENT
Topic
Name
8+1 =