Hacker News new | ask | show | jobs
by HeavyStorm 1921 days ago
I really don't think you got the original point...
1 comments

What was the original point?
I think they’re only talking about JavaScript, in which case the forEach function doesn’t return anything. So you can do x.map(…).forEach(…) because map returns an array. But u can’t do x.forEach(…).map(…) Ur examples seem like they’re for a different language.