1import { throwIf } from '../throwErrorF/throwIfF.mts'23export function assertEmpty<T>(arr: T[] | undefined | null, debugCtx?: Record<string, unknown>): asserts arr is [] | undefined | null {4 throwIf(() => arr?.length, debugCtx)5}6