If I have an array:
var a = [56, 99, 2];
the only way to iterate all the contents of it that I know of is:
for (var i = 0; i < a.length; ++i) {
// do something with a[i]
}
If I do:
for (var i in a) {
// do something with a[i]
}
it will get the "include" and "empty" functions too, so I don't want that.
Is there any nicer way than then ++i
method?