Hacker News new | ask | show | jobs
by Jare 4824 days ago
Exactly, one of the advantages of using a good abstraction like forEach() is that it prevents you from making that kind of mistake. On the other hand, it can be more costly in cases where you don't need the closure. All abstractions by definition have some tradeoffs, some visible or hidden complexity, and some extra knowledge. Promises are no different.
1 comments

I see no benefits in promises, zero, none.