re: Which types of loops are most popular in the programming languages you use? VIEW POST

FULL DISCUSSION
 

In JavaScript I only use loops in special cases.

Normally, I use filter/map/reduce.

When I have an array of promises I use a for-of-loop with await.

When I see perf problems I use plain for-loops.

code of conduct - report abuse