* Extracts team names from a recording, dropping blanks.
(recording: GrainRecording)
| 187 | * Extracts team names from a recording, dropping blanks. |
| 188 | */ |
| 189 | function teamNames(recording: GrainRecording): string[] { |
| 190 | return (recording.teams ?? []) |
| 191 | .map((t) => t.name?.trim()) |
| 192 | .filter((name): name is string => Boolean(name)) |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Extracts user-applied tag labels from a recording, dropping blanks. |