Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get all keys of object

myObject = {
	"key": "value",
    "key2":"value2"
}
Object.keys(myObject);
//console.log(Object.keys(myObject))   = ["key", "key2"]
 
PREVIOUS NEXT
Tagged: #javascript #keys #object
ADD COMMENT
Topic
Name
1+5 =