Re: for/in loop Array gotcha
- From: Michael Winter <m.winter@xxxxxxxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 16:20:01 GMT
On 29/09/2005 16:49, Ian Osgood wrote:
[snip]
for (var i in u)
[snip]
(i+1) does not obtain the expected results because i is a string!
Of course, because property names are /always/ strings.
[snip]
Mike
-- Michael Winter Prefix subject with [News] before replying by e-mail. .
- References:
- for/in loop Array gotcha
- From: Ian Osgood
- for/in loop Array gotcha
- Prev by Date: reset select-tag only
- Next by Date: Re: collapse and uncollapse tables
- Previous by thread: Re: for/in loop Array gotcha
- Next by thread: Re: for/in loop Array gotcha
- Index(es):
Relevant Pages
|