Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement String Iterator ( String.prototype[@@Symbol.iterator] ) #763

Closed
HalidOdat opened this issue Oct 2, 2020 · 1 comment
Closed
Labels
builtins PRs and Issues related to builtins/intrinsics duplicate This issue or pull request already exists enhancement New feature or request Hacktoberfest Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com

Comments

@HalidOdat
Copy link
Member

ECMASCript feature
Explain the ECMAScript feature that you'd like to see implemented.

Implementing String.prototype[@@Symbol.iterator]

Example:

let iter = new String("Hello World")[Symbol.iterator]();
let next = iter.next();
console.log(next.value) // "H"
iter.next()
console.log(next.value) // "e"
iter.next()
// ...
@HalidOdat HalidOdat added enhancement New feature or request Hacktoberfest Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com builtins PRs and Issues related to builtins/intrinsics labels Oct 2, 2020
@HalidOdat HalidOdat linked a pull request Oct 2, 2020 that will close this issue
@HalidOdat HalidOdat added the duplicate This issue or pull request already exists label Oct 2, 2020
@HalidOdat HalidOdat removed a link to a pull request Oct 2, 2020
@HalidOdat
Copy link
Member Author

This is a duplicate of #752 so closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builtins PRs and Issues related to builtins/intrinsics duplicate This issue or pull request already exists enhancement New feature or request Hacktoberfest Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com
Projects
None yet
Development

No branches or pull requests

1 participant