(...callbacks: any[])
| 14 | * Calls all functions in the order they were chained with the same arguments. |
| 15 | */ |
| 16 | export function chain(...callbacks: any[]): (...args: any[]) => void { |
| 17 | return (...args: any[]) => { |
| 18 | for (let callback of callbacks) { |
| 19 | if (typeof callback === 'function') { |
| 20 | callback(...args); |
| 21 | } |
| 22 | } |
| 23 | }; |
| 24 | } |
no outgoing calls
no test coverage detected