-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editorial: simplify note for Array.prototype.every
#3246
Conversation
This is already covered by the existing text: the condition "callbackfn returned true for all elements" is trivially (vacuously) true for an empty array. |
I suggest re-titling this PR to "Editorial: Simplify Note for Array.prototype.every". I don't know, maybe it's reasonable to expect the reader to understand that, with an empty array, any condition "for all elements" is vacuously true. But if we don't have to, why would we? The wording proposed by this PR is correct and is simpler than the status quo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 This matches the wording already used in Array.prototype.some
.
some calls callbackfn once for each element present in the array, in ascending order, until it finds one where callbackfn returns true. If such an element is found, some immediately returns true. Otherwise, some returns false
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Array.prototype.every
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
np. Check |
No description provided.