triangles-area
Get the
area of a triangle
, given the base and height
Install
$ npm install --save triangles-area
Usage
const triangleArea = console// => 331.2 console// => 15 console// => 73.7 console// => Error: Invalid input. Sides of the triangle must be greater than 0 console// => Error: Invalid input. Sides of the triangle must be greater than 0
License
MIT © Nicolás Quiroz