Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 817a7e0

Browse files
Formatting issues fix
1 parent 486c5e8 commit 817a7e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Maths/Signum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @returns {-1 | 0 | 1 | NaN} sign of input (and NaN if the input is NaN)
1616
*/
1717
function signum (input) {
18-
if(isNaN(input)) return NaN
18+
if(isNaN(input)) return NaN
1919
else if (input === 0) return 0
2020
else if (input < 0) return -1
2121
else return 1

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /