loading...

re: A simple explanation of functional pipe in JavaScript VIEW POST

FULL DISCUSSION
 

Real world use case: slugify a String:

const slugify = s => pipe(
toString,
toLower,
split(' '),
filter(removeDashes),
join('-')
);
 

Forgotten (s) at the end?

 

Yes. It was like pseudo code

 

Very cool article!

I gave an attempt at implementing your proposal for the slugify function if anyone cares to play around: codesandbox.io/s/js-functional-pip...

Code of Conduct Report abuse