(slug: string)
| 7 | } |
| 8 | |
| 9 | export function getAlgorithmIdFromSlug(slug: string): number | undefined { |
| 10 | const normalized = slug.trim().toLowerCase(); |
| 11 | for (const [id, s] of Object.entries(slugById)) { |
| 12 | if (s === normalized) return Number(id); |
| 13 | } |
| 14 | return undefined; |
| 15 | } |
no outgoing calls
no test coverage detected