diff options
Diffstat (limited to 'js/compose.js')
-rw-r--r-- | js/compose.js | 1 |
1 files changed, 1 insertions, 0 deletions
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]; |