DEV Community

Cover image for Healthy Breakfast Coding
Michiel Hendriks
Michiel Hendriks

Posted on

Healthy Breakfast Coding

It's the fruit loop

['apple', 'pear', 'grape', 'kiwi'].forEach(consume)
Enter fullscreen mode Exit fullscreen mode

Inspired by Ben's post about loops.

Top comments (2)

Collapse
 
cvanpoelje profile image
cvanpoelje

Currently, the ones that I use the most are the .map .reduce and .forEach loops.
As an Angular developer, there is a lot to discover in all of the RxJs operators. There are so many 0_0'

Collapse
 
bashayr29 profile image
Bashayr Alabdullah

For loop