DEV Community

Discussion on: The moment I realized forEach() does not return anything.

Collapse
 
clarity89 profile image
Alex K.

I prefer for.. of loop since it's more intuitive and has shorter syntax than the usual for loop.

BTW, Array#forEach is ES5 not ES6 feature ;)

Collapse
 
kaynguyen profile image
Kay N.

Definitely! Thanks for mentioning <3