Skip to content

Fix wording in some() method description#43233

Merged
Josh-Cena merged 2 commits intomdn:mainfrom
bernhard-dwe:patch-1
Feb 24, 2026
Merged

Fix wording in some() method description#43233
Josh-Cena merged 2 commits intomdn:mainfrom
bernhard-dwe:patch-1

Conversation

@bernhard-dwe
Copy link
Contributor

Description

The word "one" could mean that only one element in the array can match. The function is called until it returns truthy or the end of the array is found, meaning "one or more" elements can match the testing function.

Motivation

Reduce misunderstandings.

Additional details

None

Related issues and pull requests

None

The word "one" could mean that _only_ one element in the array can match. The function is called until it returns truthy or the end of the array is found, meaning "one or more" elements can match the testing function.
@bernhard-dwe bernhard-dwe requested a review from a team as a code owner February 24, 2026 11:33
@bernhard-dwe bernhard-dwe requested review from sideshowbarker and removed request for a team February 24, 2026 11:33
@github-actions github-actions bot added Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed labels Feb 24, 2026
@github-actions github-actions bot added size/s [PR only] 6-50 LoC changed and removed size/xs [PR only] 0-5 LoC changed labels Feb 24, 2026
Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'm convinced that this is an improvement. I've ported the same wording to all other places.

@Josh-Cena Josh-Cena merged commit dd88a6e into mdn:main Feb 24, 2026
8 checks passed
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.

2 participants