Get object names from a array of objects in javascript
i cannot find a solution of my issue. i probably making things more
complicated.
here is the array:
var Statistics = {
"STAT 1 COLUMNS" : ["Date","Group Name","Product Name","Version","Version
Date","Status","Total","Total L0","Total L1","Total L2","To be
validated","Created","Updated"],
"STAT 2 TITLE" : ["12/12/2013","Led Zeppelin","roofies","V5.3","2013-08-13
","ACCEPTED <br/>(2013-9-10)","774","334","3","437","20","57","102"],
"STAT 3 TITLE" : ["22/11/2014","Deep Purple","upper","V1","2006-01-01 ","
","3","1","0","2","1"," "," "],
...
}
i would like to get the object name (such as 'STAT 1 COLUMNS', 'STAT 2
TITLE', 'STAT 3 TITLE'..) for a specific object, by specifing the index.
for instance, givemepleasethenameoftheobject('2') -> "STAT 3 TITLE"
can you please give me a hand?
No comments:
Post a Comment