DEV Community

Discussion on: Javascript Shorthand Coding Techniques

Collapse
 
getanwar profile image
Anwar Hussain

Because forEach does not return anything. You might need to use the returned value somewhere out of your callback.