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

Array.forEach should be Array.prototype.forEach #340

Open
lewisje opened this issue May 29, 2016 · 1 comment
Open

Array.forEach should be Array.prototype.forEach #340

lewisje opened this issue May 29, 2016 · 1 comment

Comments

@lewisje
Copy link

lewisje commented May 29, 2016

The Array constructor does not even have a property called forEach; now if the # convention were explained (useful in case many prototype methods are discussed), Array#forEach would be appropriate, but for the one-off mention in the section titled "Extension of Native Prototypes", it's better to just say Array.prototype.forEach, even though the MDN URL hierarchy does not distinguish between static methods like Array.isArray and prototype methods like Array.prototype.forEach.

@peterjwest
Copy link
Collaborator

Yes, you're right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants