| Author |
Object object - size
|
Arya Devan
Greenhorn
Joined: Feb 07, 2006
Posts: 28
|
|
hi all .. i have a small doubt... if i were to declare something like .. var x = new Object() and i put something in the variable x . how am i supposed to find the size of this object x ??
|
Arya.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
What do you mean by size? Do you mean a list of all of its properties. An object is not like an array where you can just reference a length. Eric
|
 |
Arya Devan
Greenhorn
Joined: Feb 07, 2006
Posts: 28
|
|
|
yes .... i want the list of all its properties. how should i find it ?
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
You need to look into the for(x in y) loop Eric
|
 |
 |
|
|
subject: Object object - size
|
|
|