Link to home
Start Free TrialLog in
Avatar of dog42
dog42

asked on

Array Counter

Anyone know a quick way to count the number of two dimensional arrays in a script?  i.e. foo[0], foo[1], foo[2], foo[x] - I'm looking for a method to find what 'x' goes up to, is there a built-in function to do this in javaScript?

I like to avoid recursion. Thanks.
dog42
Avatar of daveamour
daveamour
Flag of United Kingdom of Great Britain and Northern Ireland image

foo.length()
ASKER CERTIFIED SOLUTION
Avatar of daveamour
daveamour
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dog42
dog42

ASKER

Thanks.  I thought it was going to be more complicated than that!