about summary refs log tree commit diff stats
path: root/js/pipe.js
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2023-07-19 22:21:54 -0400
committerelioat <elioat@tilde.institute>2023-07-19 22:21:54 -0400
commit313c7d81a673031813bfca84fa64eb3cbe7be24b (patch)
treee4cf39ca19a9e89e09cbe7bfaa8ead58ccb13741 /js/pipe.js
parentdd55dd0bc450400e676a3b1e874921bf05242f17 (diff)
downloadtour-313c7d81a673031813bfca84fa64eb3cbe7be24b.tar.gz
*
Diffstat (limited to 'js/pipe.js')
-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));
+