Articles tagged: Generator
Found 4 documents
- Web/JavaScript/Reference/Global_Objects/Generator The Generator object is returned by a generator function and it conforms to both the iterable ...
- Web/JavaScript/Reference/Global_Objects/Generator/next The next () method returns an object with two properties done and value. You can also provide a ...
- Web/JavaScript/Reference/Global_Objects/Generator/return The return() method returns the given value and finishes the generator.
- Web/JavaScript/Reference/Global_Objects/Generator/throw The throw() method resumes the execution of a generator by throwing an error into it and returns ...