about summary refs log tree commit diff stats
path: root/js/compose.js
blob: a414e3c94b3e204cee62c7e22244a80b7f9e4566 (plain) (blame)
1
const compose = (...fns) => (...args) => fns.reduceRight((res, fn) => [fn.call(null, ...res)], args)[0];