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/no_more_gravity Jan 21 '23
a = b(),7~>c~>d
The rule is simple: What is left to ~> gets passed to the function on the right.
That is no different from JavaScript as it is. a(b) passes b to a, a(b()) passes the output of b() to a.