```ts
/** A mapping's value for a key, or a fallback when it is absent. */
export function lookUp(
  store: Record<string, string>,
  key: string,
  fallback: string,
): string {
  const value = store[key];
  return value !== undefined && value.trim() !== '' ? value : fallback;
}
```