Skip to content

Commit 94348cb

Browse files
committed
is shortened inside the function getOrdinalNumber()
1 parent ad2180d commit 94348cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sprint-3/2-practice-tdd/get-ordinal-number.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
function getOrdinalNumber(num) {
2-
//
3-
if (typeof num !== "number" || !Number.isInteger(num) || num <= 0) {
2+
if (typeof num !== "number") {
43
return "Input must be a positive integer.";
54
}
65

0 commit comments

Comments
 (0)