Skip to content

Commit

Permalink
Merge pull request #4 from shgxshg/usafeReturnOfAny
Browse files Browse the repository at this point in the history
Usafe return of any
  • Loading branch information
shgxshg authored Aug 31, 2024
2 parents f7b181c + 7c97223 commit 9890695
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/fib.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// util function that computes the fibonacci numbers


export default function fibonacci(n: number): number {
Expand All @@ -11,5 +10,3 @@ export default function fibonacci(n: number): number {
return 1;
}

return fibonacci(n - 1) + fibonacci(n - 2);
}

0 comments on commit 9890695

Please sign in to comment.