Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
218 Bytes
import type { AnyFunction } from "./types"
export function callAll<T extends AnyFunction>(...fns: (T | undefined)[]) {
return function mergedFn(...args: Parameters<T>) {
fns.forEach((fn) => fn?.(...args))
}
}