Skip to content

Instantly share code, notes, and snippets.

@zlatkov
Created March 11, 2021 12:45
Show Gist options
  • Save zlatkov/78355228beb10ae5052edc8df45b698f to your computer and use it in GitHub Desktop.
Save zlatkov/78355228beb10ae5052edc8df45b698f to your computer and use it in GitHub Desktop.
let fibonacciSequenceIterator = makeFibonacciSequenceIterator(5);
for (let x of fibonacciSequenceIterator) {
console.log(x); //1 1 2 3 5 8
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment