HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by nullcipher | Hacker News Reader
Parent
Full thread
nullcipher
·
I mean just search for "is forEach functional programming"
View on HN
guilherme-puida
·
forEach is just an alternate syntax for a for..in loop, that instead of being a block it takes a closure. It's not functional, since it's only used for side-effects.
Reply on news.ycombinator.com