by hdhzy · 9y ago · 0 comments
[0]: https://jsperf.com/foreach-vs-reduce-vs-for-loop
For loops have also an advantage that they can be used with yield and await (generators and async functions) while you cannot place these keywords inside a callback function.