loading...

re: Piping JavaScript VIEW POST

FULL DISCUSSION
 

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

 

Yes.

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

v |> f to o.m()

code of conduct - report abuse