String.prototype[Symbol.iterator]()
String.prototype[Symbol.iterator]() is a JavaScript method in the String category. Returns a string iterator. The syntax is str[Symbol.iterator](). A typical example: [... "abc"] // ["a","b","c"]. A close sibling is String.prototype.charAt(), which returns the character at the specified index. A close sibling is String.prototype.charCodeAt(), which returns the Unicode value of the character at the specified index. A close sibling is String.prototype.concat(), which concatenates strings together. A close sibling is String.prototype.includes(), which checks if a string contains a specified substring. More about this category: String methods for text manipulation — split, replace, trim, match, and more. Related String methods: String.prototype.charAt(), String.prototype.charCodeAt(), String.prototype.concat(), String.prototype.includes(), String.prototype.indexOf(), String.prototype.lastIndexOf(), String.prototype.match(), String.prototype.matchAll(). This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try String.prototype[Symbol.iterator]() immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.