/**
 * Checks if a value is considered empty for NOTNULL validation purposes.
 * A value is empty if it's null, undefined, or a string that is blank after trimming.
 */
export function isEmpty(value: unknown): boolean {
  if (value === null || value === undefined) return true
  return value.toString().trim().length === 0
}
