Skip to content

Commit 934d81d

Browse files
authored
Update TriangularNumberCheck.js
1 parent 9539ec0 commit 934d81d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Maths/TriangularNumberCheck.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
**/
1818

19-
function IsTriangularNumber(n) {
19+
function TriangularNumberCheck(n) {
2020
// Ensure the input n is a non-negative integer, retrurn -1 to indicate error.
2121
if (!Number.isInteger(n) || n < 0) {
2222
return -1;
@@ -36,4 +36,4 @@ function IsTriangularNumber(n) {
3636
}
3737
}
3838

39-
export { IsTriangularNumber }
39+
export { TriangularNumberCheck }

0 commit comments

Comments
 (0)