Skip to content

Commit 95a8ec0

Browse files
authored
merge: More accurate error message at IsDivisible (TheAlgorithms#1048)
* More accurate error message * Lowercased "R"
1 parent 6b06b3a commit 95a8ec0

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
export const isDivisible = (num1, num2) => {
44
if (!Number.isFinite(num1) || !Number.isFinite(num2)) {
5-
throw new TypeError('Expected a number')
5+
throw new TypeError('Expected a valid real number')
66
}
77
if (num2 === 0) {
88
return false

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy