We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f20f13d commit 2226f35Copy full SHA for 2226f35
functions/math/hypot.js
@@ -6,5 +6,5 @@ function hypot(x, y) {
6
// example 2: hypot([], 'a');
7
// returns 2: null
8
9
- return Math.sqrt(x * x + y * y) || 0;
+ return Math.sqrt(x * x + y * y) || null;
10
}
0 commit comments