Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bsimpson
· 11y ago · 0 comments
I dig laziness, but why is `forEach` lazy? That's the only one that invokes immediately in libraries like Lazy.js.
Comments
[–]
quadratini
11y ago
It's only lazy if it's part of a chain
[–]
jdd
11y ago
Chaining is deferred until `value()` is implicitly or explicitly called. However shortcut fusion does not apply to `forEach`.