(base1, base2, height)
| 128 | * @example areaTrapezium(5, 12, 10) = 85 |
| 129 | */ |
| 130 | const areaTrapezium = (base1, base2, height) => { |
| 131 | validateNumericParam(base1, 'Base One') |
| 132 | validateNumericParam(base2, 'Base Two') |
| 133 | validateNumericParam(height, 'Height') |
| 134 | return (1 / 2) * (base1 + base2) * height |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * @function areaCircle |
nothing calls this directly
no test coverage detected