Files
JavaScript/Maths/IsDivisible.js
Masahiko Shin 469a0e06c8 Improve input validation of isDivisible
- Use Number.isFinite() for validation
- Throw an error instead of returning a string
- Instead of returning a string, return false when divisor === 0 since no numbers are in fact divisible by 0.
2021-05-05 14:22:10 +09:00

441 B