This commit is contained in:
Ricardo Borges 2024-07-17 10:38:24 +09:00 committed by GitHub
commit 420cc7a342
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,10 +10,6 @@ export default function fibonacci(n) {
let currentValue = 1; let currentValue = 1;
let previousValue = 0; let previousValue = 0;
if (n === 1) {
return fibSequence;
}
let iterationsCounter = n - 1; let iterationsCounter = n - 1;
while (iterationsCounter) { while (iterationsCounter) {