DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+1 =
Submit