about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--js/pipe.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/pipe.js b/js/pipe.js
new file mode 100644
index 0000000..69ccae3
--- /dev/null
+++ b/js/pipe.js
@@ -0,0 +1,2 @@
+const pipe = (...args) => args.reduce((acc, el) => el(acc));
+