Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
throwawa923423
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
throwawa923423
5y ago
I think it is important that you brought awareness to this, this is a really good point and I agree 100%. JavaScript does have hygiene issues with its API design.
2.
▲
by
throwawa923423
5y ago
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`.