Re: for/in loop Array gotcha
- From: "pipe" <auditor400@xxxxxxxxx>
- Date: 29 Sep 2005 09:02:00 -0700
var u = [1,1]
for (var i in u)
print([i, 2+i, -0+2+parseInt(i)].join());
print(typeof(i) + ' ' + typeof(i-0));
output left for readers to guess
.
- References:
- for/in loop Array gotcha
- From: Ian Osgood
- for/in loop Array gotcha
- Prev by Date: Re: can you give me a gmail invitation?
- Next by Date: Problems with XML & JavaScript
- Previous by thread: for/in loop Array gotcha
- Next by thread: Re: for/in loop Array gotcha
- Index(es):