( hatAdjustmentsList: HatAdjustments[], propertyName: keyof HatAdjustments )
| 21 | ]; |
| 22 | |
| 23 | function processProperty( |
| 24 | hatAdjustmentsList: HatAdjustments[], |
| 25 | propertyName: keyof HatAdjustments |
| 26 | ) { |
| 27 | let value = sum( |
| 28 | hatAdjustmentsList.map((adjustment) => adjustment[propertyName] ?? 0) |
| 29 | ); |
| 30 | |
| 31 | return postProcessValue(value); |
| 32 | } |
| 33 | |
| 34 | function main() { |
| 35 | const finalMap = Object.fromEntries( |
no test coverage detected