3 ms·
Note that the proposal for a pipeline operator is still in its early day. In fact, there are two proposals (https://babeljs.io/blog/2018/07/19/whats-happening-w
by alvis 8y ago
Note that the proposal for a pipeline operator is still in its early day. In fact, there are two proposals (https://babeljs.io/blog/2018/07/19/whats-happening-with-the-pipeline-proposal https://babeljs.io/blog/2018/07/19/whats-happening-with-the-...) and so far there's no clear winner. Seems like there's still a long way to go.
Anyway, which style do you prefer?
- deckar01 8y agoNeither. Just use a function. You don't need a dedicated operator in the language's syntax to composite functions. const foo = pipeline( bar, baz, x => x + 1, ) foo(42)