Fixed issues with deepClone, built everything

This commit is contained in:
Angelos Chalaris
2019-01-12 11:42:14 +02:00
parent 3b9ed4f2e0
commit af0f433975
16 changed files with 4816 additions and 4798 deletions

View File

@ -11,8 +11,8 @@ Throws an exception if `n` is a negative number.
const factorial = n =>
n < 0
? (() => {
throw new TypeError('Negative numbers are not allowed!');
})()
throw new TypeError('Negative numbers are not allowed!');
})()
: n <= 1
? 1
: n * factorial(n - 1);