Movatterモバイル変換


[0]ホーム

URL:


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

Commit95a8ec0

Browse files
authored
merge: More accurate error message atIsDivisible (TheAlgorithms#1048)
* More accurate error message* Lowercased "R"
1 parent6b06b3a commit95a8ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Maths/IsDivisible.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exportconstisDivisible=(num1,num2)=>{
44
if(!Number.isFinite(num1)||!Number.isFinite(num2)){
5-
thrownewTypeError('Expected a number')
5+
thrownewTypeError('Expected avalid realnumber')
66
}
77
if(num2===0){
88
returnfalse

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp