diff --git a/Maths/IsDivisible.js b/Maths/IsDivisible.js index 1cdb6137c..89ce0620e 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 Error('All parameters have to be numbers') + throw new TypeError("Expected a number") } if (num2 === 0) { return false