(...functions: ((...args: T[]) => T)[])
| 3 | */ |
| 4 | |
| 5 | export default function compose<T>(...functions: ((...args: T[]) => T)[]) { |
| 6 | return functions.reduce( |
| 7 | (acc, currentFn) => |
| 8 | (...args: T[]) => |
| 9 | acc(currentFn(...args)), |
| 10 | ); |
| 11 | } |
no outgoing calls
no test coverage detected