'Typescript/Javascript custom pipe operator taking in more than one parameter

I like the concept of using pipe | operations as it helps to make code more readable. Although there is currently no support for it, I read an article which allows us to define pipe operators in javascript.

The article however assumes that each function takes in one parameter which is the result of the previous operation. I am wondering if it is possible to have some functions take in more than just the result from the previous function ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source