export function coalesce<T>(value: T | undefined | null, fallback: T): T {
  return value ?? fallback;
}

export function present<T>(value: T | undefined | null): T | undefined {
  return value === undefined || value === null ? undefined : value;
}