Ricardo Fernández Serrata
95a8ec08ed
merge: More accurate error message at IsDivisible ( #1048 )
...
* More accurate error message
* Lowercased "R"
2022-06-21 22:47:45 +05:30
Eric Lavault
9212e6d684
Remove live code & console.log, leave examples as comments (Geometry, Graphs, Maths).
2021-10-10 17:55:08 +02:00
Masahiko Shin
6d8b134ce7
Formatted with standard
2021-05-23 18:09:39 +09:00
Masahiko Shin
a14da3d113
improve error handling of isDivisible
2021-05-23 17:44:15 +09:00
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
Masahiko Shin
5a0db06e8c
Fix case of file name of isDivisible
2021-05-05 14:21:20 +09:00