UNPKG
funcom
Version:
latest (0.2.0)
0.2.0
0.1.0
0.0.0
Functional composition helpers
github.com/nextools/metarepo
nextools/metarepo
funcom
/
node
/
pipe.js
8 lines
(7 loc)
•
175 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
pipe
= pipe;
function
pipe
(
...fns
) {
return
initial
=>
fns.
reduce
(
(
arg, fn
) =>
fn
(arg), initial); }