(activeMonths: readonly string[])
| 78 | } |
| 79 | |
| 80 | function getActiveMonthIndexes(activeMonths: readonly string[]): number[] { |
| 81 | return [...new Set(activeMonths.map(parseMonthIndex).filter((month): month is number => month !== null))].sort( |
| 82 | (a, b) => a - b |
| 83 | ) |
| 84 | } |
| 85 | |
| 86 | export function rankPercentiles<T>(items: readonly T[], valueSelector: (item: T) => number): Map<T, number> { |
| 87 | const result = new Map<T, number>() |
no outgoing calls
no test coverage detected