32
rated 0 times
[
36]
[
4]
/ answers: 1 / hits: 41618
/ 12 Years ago, mon, september 10, 2012, 12:00:00
Possible Duplicate:
How do I enumerate the properties of a javascript object?
If I have a javascript object like this :
data = {
a : 2,
b : 3
}
but a and b are arbitrary and decided at runtime. Is there any way to go through the object
and access all properties without knowing the key?
More From » javascript