```ts
/**
 * Text with the case of every letter turned over.
 */
export function swapCase(text: string): string {
  return text.split('').map(char => (char === char.toUpperCase() ? char.toLowerCase() : char.toUpperCase())).join('');
}
```