Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
arp242
on Jan 20, 2023
|
parent
|
context
|
favorite
| on:
Pipe Operator (|>) For JavaScript
Yes, you can do that in lambdas:
> `${50}: ${[1,2,3].map(a => `${a+1}`)}` '50: 2,3,4'
Whether that's a good idea or clear code is another issue. But it's allowed.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: