How does Generator.next() processes its parameter?
The documentation says that “You can also provide a parameter to the next method to send a value to the generator.” Where does it sends it to? For example, take these 3 generators: function* one() { while(true) { var value = yield null; } } var g1 = one(); g1.next(); g1.next(1000); //yields null function* two() … Read more