1import { throwIf } from '../throwErrorF/throwIfF.mts'2import { isPlainObject } from 'lodash-es'34export function assertPlainObject(value: unknown, debugCtx?: Record<string, unknown>): asserts value is Record<string, unknown> {5 throwIf(() => !isPlainObject(value), debugCtx)6}7