121
rated 0 times
[
127]
[
6]
/ answers: 1 / hits: 26445
/ 15 Years ago, thu, july 2, 2009, 12:00:00
I'm trying to use JavaScript object as an associative array and everything was well until I needed to get number of entries that are stored in it. What is the easiest and most elegant way to do that? All I can think of is to run for each
loop or jQuery $.each
function and just see how much iterations it would do but that looks like an an awful thing to do.
More From » javascript