Array.forEach - vijayetar/seattle-301d55 GitHub Wiki
ARRAY.FOREACH()
Video
Watch today's video from the demo playlist.{:target="_blank"}
Caveats and Notes
- Applies the callback to each element
- You cannot "break" or "continue" as you can with a for loop
- By default, forEach does not mutate the array
- If you mutate it in process, you will have interesting issues
- Curly braces matter in multiple statements
- parenthesis matters with multiple parameters in the forEach call back function requiring value,index,array but if you have only one parameter, then okay to delete parenthesis