Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
substation13
on Jan 20, 2023
|
parent
|
context
|
favorite
| on:
Pipe Operator (|>) For JavaScript
You do for member access, e.g.
let firstName = person |> fun x -> x.FirstName |> trim
Some languages allow:
let firstName = person |> .FirstName |> trim
But you're right, expression-orientation and currying make this much more natural.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: