News for hackers. Stuff that matters.
Re:A pipe operator for JavaScript: introduction and use cases by johannes1234321 on Saturday January 29, 2022 @10:06AM (#30126834)
> Why not use concatenation? > > const y = x f g h;

This can't be broken into multiple lines.

   const y = x f
   g h
Will have an implicit ; in between.

   const y = x 
          |> f
          |> g
          |> h; 
Will work as expected, and potentially increase readability.

There are no comments on this comment yet.