(breakdownName: string)
| 164 | } |
| 165 | |
| 166 | export function extractCohortId(breakdownName: string): string | null { |
| 167 | if (breakdownName.startsWith('cohort:')) { |
| 168 | return breakdownName.split(':')[1] ?? null; |
| 169 | } |
| 170 | return null; |
| 171 | } |
| 172 | |
| 173 | export function isAllCohortsBreakdown(breakdownName: string): boolean { |
| 174 | return breakdownName === 'cohort'; |
no outgoing calls
no test coverage detected