News for hackers. Stuff that matters.
Re:FP techniques that will help you write better JavaScript by throwawa923423 on Friday February 11, 2022 @06:32PM (#30308301)
I get where you are coming from, but it is obvious to me `forEach` is side effect because of its return type.

Also I think `forEach` is great for cases such as `arr.forEach(f)` where `arr: Array<T>, f: T => void`.

There are no comments on this comment yet.