JavaScript Iterator
Iterator and generator methods. This category documents 7 JavaScript iterator entries, and each page gives you the full syntax, the parameter list, the return value, a runnable example, time complexity, the TypeScript signature, and the mistakes developers most often make with that API. The entries are: yield, Iterator.prototype.every(), Iterator.prototype.find(), Iterator.prototype.some(), Iterator.prototype.forEach(), Iterator.prototype.reduce(), Iterator.prototype.toArray(). For a structured walkthrough of the whole topic, read the Iterators guide. Not sure which method you need? yield and Iterator.prototype.every() are the most commonly used starting points in this category. You can also search across every category from the search page or browse the complete A–Z index.