Fully renamed and updated everything, tagged, built
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
### Fibonacci array generator
|
||||
### fibonacci
|
||||
|
||||
Generates an array, containing the Fibonacci sequence, up until the nth term.
|
||||
|
||||
Create an empty array of the specific length, initializing the first two values (`0` and `1`).
|
||||
Use `Array.reduce()` to add values into the array, using the sum of the last two values, except for the first two.
|
||||
|
||||
Reference in New Issue
Block a user