pipeoperator
A library that creates pipelines in JavaScript. It works exactly like the pipe operator from Elixir or Bash.
Installation
npm install pipeoperator
;
Usage
const pipedValue = ; { /* ... */ } { /* ... */ } { /* ... */ }
pipe()
also takes additional arguments that are passed into the called function:
const total = ; // total === 10 { return args;}