Skip to content

Conversation

@NA-V10
Copy link

@NA-V10 NA-V10 commented Nov 27, 2025

Description

This PR fixes minor grammar and clarity issues in the Array.prototype.indexOf() documentation.
The updates improve sentence structure, parameter wording, and readability in the “fromIndex” explanation note.

Motivation

These improvements make the documentation more natural and easier to read by:

  • Replacing “a given element” with “an element”
  • Changing “Element to locate in the array.” to “The element to locate in the array.”
  • Updating “Note, the array…” to the clearer “Note: the array…”

All changes are non-functional documentation updates.

Additional details

These updates follow MDN’s writing style guidelines for clarity and consistent phrasing.
No code behavior or examples were modified.

Related issues and pull requests

None.

@NA-V10 NA-V10 requested a review from a team as a code owner November 27, 2025 10:43
@NA-V10 NA-V10 requested review from Josh-Cena and removed request for a team November 27, 2025 10:43
@github-actions github-actions bot added Content:JS JavaScript docs size/s [PR only] 6-50 LoC changed labels Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:JS JavaScript docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant