(base, height)
| 66 | * @example areaTriangle(1.66, 3.44) = 2.8552 |
| 67 | */ |
| 68 | const areaTriangle = (base, height) => { |
| 69 | validateNumericParam(base, 'Base') |
| 70 | validateNumericParam(height, 'Height') |
| 71 | return (base * height) / 2.0 |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * @function areaTriangleWithAllThreeSides |
nothing calls this directly
no test coverage detected