DEV Community

Discussion on: Don’t pay the for-loop tax

Collapse
 
pnewman8 profile image
pnewman8

This is all very well, but it's not possible if you need to support Internet Explorer. I can't see that problem going away any time soon.

Collapse
 
neonhomer profile image
Kramer

This! And yes some of us still have to support IE8! 😕

Collapse
 
danhomola profile image
Dan Homola

Actually, map is supported since IE 9 and so is reduce, so there is no need to worry (the support tables are at the end of the linked pages).

Collapse
 
nicowernli profile image
Nicolás Wernli

Why not? First IE11 will support most if not all of this functions. On the other hand you can use Babel to convert your ES6 to ES5.
My last point is that this is a good practice post, that's applicable to anything, not just the web, you should try to use this pattern no matter what you are doing