hypotenuse property

Line get hypotenuse

Get hypotenuse

the longest line of this triangle

Implementation

Line get hypotenuse =>
    sides.reduce((cur, next) => cur.length > next.length ? cur : next);