A JavaScript function that looks and behaves like a pipe operator

We are spoiled by the pipe operator in Elm. You can now use a pipe-like function in JavaScript too :wink:

1 Like

If you’re an old fart like me, you might have seen GitHub - tc39/proposal-pipeline-operator: A proposal for adding a useful pipe operator to JavaScript. and have used https://babeljs.io/ to be able to use it.

There is already a note about this proposal in the README :wink:

1 Like

I love their optimism

It may or may not be included in the official JavaScript specs in a few years.

The original proposal is much older than the 2021 they mention. I remember seeing it as far back as at least 2016 because I was using it with BabelJS back then.

1 Like

You’re right, the original pipe operator proposal was created in 2015

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.