DEV Community

Discussion on: Piping JavaScript

Collapse
 
rapasoft profile image
Pavol Rajzak

So, is this only syntactic sugar? I personally don't see any increase in readability when I compare |> something() to .something().

Collapse
 
kayis profile image
K • Edited

Yes.

You could see it as the FP equivalent to the dot operator of OOP.

v |> f to o.m()