2648. Generate Fibonacci Sequence
https://leetcode.com/problems/generate-fibonacci-sequence
Javascript
var fibGenerator = function*() {
let n0 = 0
let n1 = 1
let origin
while (true) {
yield n0;
origin = n1
n1 = n0+n1
n0 = origin
}
};