(slug: string)
| 14 | } |
| 15 | |
| 16 | export function removeIndex(slug: string): string { |
| 17 | return slug.replace(/-\d+$/, ''); |
| 18 | } |
| 19 | |
| 20 | export function extractGroupSlugs(groups: Group[]): string[] { |
| 21 | const slugs = groups.map(({ slug }) => removeIndex(slug)); |
no outgoing calls
no test coverage detected