mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 02:25:30 -05:00
7f8d2e37d5
[web] Payment page migration checkout panel GitOrigin-RevId: 04edf9961e0032d6fe3631c255e49dc1d4c3e0ca
6 lines
174 B
TypeScript
6 lines
174 B
TypeScript
export function callFnsInSequence<
|
|
Args,
|
|
Fn extends ((...args: Args[]) => void) | void
|
|
>(...fns: Fn[]) {
|
|
return (...args: Args[]) => fns.forEach(fn => fn?.(...args))
|
|
}
|