An implicit prerequisite is that the code must work.
So a beautiful and declarative not working foreach is not a choice having a working explicit i++
The code must always work. If you have evidence some browsers does not support the declarative one i am ok with the old way.
Shame on browser compatibility
Chris Bongers
Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day ๐
Nice one!
I do wonder some times I favor a basic for i++ loop since forEach is not 100% browser supported.
What's your take on that?