```ts
/** Text with the case of every letter turned over. */
export function swapCase(text: string): string {
  return text.split('').map(c => /[a-zA-Z]/.test(c) ? c === c.toUpperCase() ? c.toLowerCase() : c.toUpperCase() : c).join('');
}
```