Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
thdhhghgbhy
· 1y ago · 0 comments
I always thought JS map filter reduce felt quite nice, especially playing around with data in the REPL. Java maps with all the conversions back and forth to streams are clumsy.
Comments
[–]
Timwi
1y ago
Well in JS you have to convert to arrays instead. You can't do `document.querySelectorAll(...).map(...)`.
[–]
thdhhghgbhy
OP
1y ago
That's the DOM API, it's not part of the language! They had reasons for querySelectorAll not returning an array.