Returns the square root of the sum of squares of its arguments.
hypot(...values)
values variadic
Values to compute the square root for.
If no arguments are passed, the result is +0.
If there is only one argument, the result is the absolute value.
If any argument is +Infinity or -Infinity, the result is +Infinity.
If any argument is NaN, the result is NaN. If all arguments are either +0 or −0, the result is +0.
A number.
Math.hypot(3, 4)
5
arr = [1, 2, 3]
Math.hypot(...arr)
3.7416573867739413