MDN | MDN Curriculum | Playground | HTTP Observatory | About MDN | Advertise with us | Community | Blog | MDN Plus | MDN Discord | HTML: Markup language | Elements | Global attributes | Attributes | See all… | Responsive images | HTML cheatsheet | Date & time formats | See all… | SVG | MathML | XML | CSS: Styling language | Properties | Selectors | At-rules | Values | See all…
Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
Array.prototype[Symbol.iterator]()
Array.prototype.values() is the default implementation of Array.prototype[Symbol.iterator]().
Because values() returns an iterable iterator, you can use a for...of loop to iterate it.
Warning: The array iterator object should be a one-time use object. Do not reuse it.
Warning: The array iterator object should be a one-time use object. Do not reuse it.
There are no values stored in the array iterator object returned from values(); instead, it stores the address of the array used in its creation, and reads the currently visited index on each iteration. Therefore, its it
This page was last modified on Jun 19, 2026 by MDN contributors.