Travis build: 2024 [cron]

This commit is contained in:
30secondsofcode
2018-05-02 21:04:11 +00:00
parent 38f82c678f
commit b75eb64595
6 changed files with 118 additions and 53 deletions

View File

@ -3,5 +3,7 @@ n < 0
? (() => {
throw new TypeError('Negative numbers are not allowed!');
})()
: n <= 1 ? 1 : n * factorial(n - 1);
: n <= 1
? 1
: n * factorial(n - 1);
module.exports = factorial;