import type { AnyFunction } from "./types" export function callAll(...fns: (T | undefined)[]) { return function mergedFn(...args: Parameters) { fns.forEach((fn) => fn?.(...args)) } }