We learned loops back in school. But enumerators and iterators are the next generation. TL;DR: Don't use indices while iterating. Prefer Higher level collections. Problems Encapsulation Declarativeness Solutions Favor foreach() or high order i...

Markdown supported · ⌘↵ to post
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?