1.0.1 • Published 5 years ago
@drblaster/pipe v1.0.1
pipe
Easily pipe unary functions in JavaScript.
Example:
const { pipe } = require('@drblaster/pipe');
const sumThree = arg => 3 + arg;
const sumFour = arg => 4 + arg;
const divideByTwo = arg => arg / 2;
const result = pipe(
sumThree,
sumFour,
divideByTwo
)(127); // result will be 67