how-to-create-pipe-function Please look at pipe.js You can also check my blog post for more details: https://medium.com/@danielkagan/how-to-write-your-own-pipe-function-in-js-da7d1a3e2a2a