From 573b63ff95c85c932c55e0c8888bffdc6704ed1a Mon Sep 17 00:00:00 2001 From: elioat Date: Tue, 18 Jul 2023 10:23:54 -0400 Subject: * --- js/compose.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 js/compose.js (limited to 'js') diff --git a/js/compose.js b/js/compose.js new file mode 100644 index 0000000..a414e3c --- /dev/null +++ b/js/compose.js @@ -0,0 +1 @@ +const compose = (...fns) => (...args) => fns.reduceRight((res, fn) => [fn.call(null, ...res)], args)[0]; -- cgit 1.4.1-2-gfad0