Glossary Term
Generator.prototype.next()
The next() method of Generator instances 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.
Return value: done A boolean value: true if the generator is past the end of its control flow. In this case value specifies the return value of the generator (which may be undefined). false if the generator is able to produce more values. value Any JavaScript value yielded or returned by the generator.
Parameters: value The value to send to the generator.
Parameters: The value will be assigned as a result of a yield expression. For example, in variable = yield expression, the value passed to the .next() function will be assigned to variable.
Syntax example: next()
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
