From 3287300175c38eaee1da4a656ce00da63c6c4ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+rudxain@users.noreply.github.com> Date: 2022年6月20日 12:00:45 -0400 Subject: [PATCH 1/2] More accurate error message --- Maths/IsDivisible.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Maths/IsDivisible.js b/Maths/IsDivisible.js index 2d9083c561..e033a72e5c 100644 --- a/Maths/IsDivisible.js +++ b/Maths/IsDivisible.js @@ -2,7 +2,7 @@ export const isDivisible = (num1, num2) => { if (!Number.isFinite(num1) || !Number.isFinite(num2)) { - throw new TypeError('Expected a number') + throw new TypeError('Expected a valid Real number') } if (num2 === 0) { return false From dd0e445a83c3946640cc5e2aa06a1f58f93b0a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+rudxain@users.noreply.github.com> Date: 2022年6月21日 13:11:32 -0400 Subject: [PATCH 2/2] Lowercased "R" --- Maths/IsDivisible.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Maths/IsDivisible.js b/Maths/IsDivisible.js index e033a72e5c..62c9f2e0a0 100644 --- a/Maths/IsDivisible.js +++ b/Maths/IsDivisible.js @@ -2,7 +2,7 @@ export const isDivisible = (num1, num2) => { if (!Number.isFinite(num1) || !Number.isFinite(num2)) { - throw new TypeError('Expected a valid Real number') + throw new TypeError('Expected a valid real number') } if (num2 === 0) { return false

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