(refs: CategoryRef[])
| 149 | } |
| 150 | |
| 151 | export function countWeightedRefs(refs: CategoryRef[]) { |
| 152 | return refs |
| 153 | .filter(({ weight }) => weight > 0) |
| 154 | .reduce((sum, { weight }) => sum + weight, 0); |
| 155 | } |
| 156 | |
| 157 | export function countCategoryAudits( |
| 158 | refs: CategoryRef[], |