Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: