I wrote some JavaScript on Chrome and then tried to run it in IE8. The first thing I ran into was the lack of Array.map
, Array.filter
and all their useful cousins. To get around this, I added some of the shims found here.
This broke all my for ... in ...
loops, like this:
>> c = [1]; {...} >> for(i in c) { console.log(i);} LOG: 1 LOG: indexOf LOG: lastIndexOf LOG: filter
I would want that to iterate over array entries only. Is there a way around this or do I need to go back to writing for(i=0;i<c.length;++i)
loops?