Results 1 - 4 of 4

Generator.prototype.next()

The next() method returns an object with two properties done and value. You can also provide a parameter to the next method to send a value to the generator.
ECMAScript6 Generator JavaScript Method Prototype Reference

Generator.prototype.return()

The return() method returns the given value and finishes the generator.
ECMAScript6 Generator JavaScript Method Prototype Reference

Generator.prototype.throw()

The throw() method resumes the execution of a generator by throwing an error into it and returns an object with two properties done and value.
ECMAScript6 Generator JavaScript Method Prototype Reference