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

fix: Update the description of callbackFn's accumulator in Array.reduceRight() #26594

Merged
merged 4 commits into from
May 13, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ reduceRight(callbackFn, initialValue)
- `callbackFn`
- : A function to execute for each element in the array. Its return value becomes the value of the `accumulator` parameter on the next invocation of `callbackFn`. For the last invocation, the return value becomes the return value of `reduceRight()`. The function is called with the following arguments:
- `accumulator`
- : The value previously returned in the last invocation of the callback, or `initialValue`, if supplied. (See below.)
- : The value resulting from the previous call to `callbackFn`. On first call, `initialValue` if specified, otherwise the value of the last element in the array. (See below.)
Josh-Cena marked this conversation as resolved.
Show resolved Hide resolved
- `currentValue`
- : The current element being processed in the array.
- `index`
Expand Down