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

Ambiguity of concept "iterator helper" #36699

Open
trincot opened this issue Nov 9, 2024 · 0 comments · May be fixed by #36711
Open

Ambiguity of concept "iterator helper" #36699

trincot opened this issue Nov 9, 2024 · 0 comments · May be fixed by #36711
Labels
Content:JS JavaScript docs

Comments

@trincot
Copy link

trincot commented Nov 9, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Iterator/map

What specific section or headline is this issue about?

Return value

What information was incorrect, unhelpful, or incomplete?

Throughout the article the term "iterator helper" is used for the returned iterator

What did you expect to see?

The map method returns an iterator, not iterator helper.

Do you have any supporting links, references, or citations?

The page hyperlinks "iterator helper" to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Iterator#iterator_helpers, which defines "iterator helpers" as the set of methods on iterators, not the iterator itself. This is inconsistent.

Do you have anything more you want to share?

A similar problem occurs on other pages on iterator helpers, like filter, drop, take,...etc.

MDN metadata

Page report details
@trincot trincot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Nov 9, 2024
@github-actions github-actions bot added the Content:JS JavaScript docs label Nov 9, 2024
@Josh-Cena Josh-Cena removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:JS JavaScript docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants