Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thdhhghgbhy
39 days ago
|
parent
|
context
|
favorite
| on:
Working pipe operator today in pure JavaScript
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.
Timwi
38 days ago
[–]
Well in JS you have to convert to arrays instead. You can't do `document.querySelectorAll(...).map(...)`.
thdhhghgbhy
38 days ago
|
parent
[–]
That's the DOM API, it's not part of the language! They had reasons for querySelectorAll not returning an array.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: