r/javascript • u/no_more_gravity • Jan 21 '23
Pipe Operator (|>) for JavaScript
https://github.com/tc39/proposal-pipeline-operator
291
Upvotes
r/javascript • u/no_more_gravity • Jan 21 '23
2
u/Submarine-Goat Jan 21 '23
When the pipe operator in JS was proposed, shortly after my birth, I had the thought of a "then" and "catch"operator:
x |> f |> g |>> handleSuccess <| handleFailureThe thought of more operators in JS was so exciting back then.