This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Class to produce Fibonacci series and actions on them */ | |
class Fibonacci { | |
/** | |
* Initialize the arrays to store the Fibonacci series | |
* complete: All the values that have been calculated across uses | |
* current: The current list of values | |
*/ | |
constructor() { | |
this.series = { | |
complete: [], |
OlderNewer