We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a895a97 commit 0ed83efCopy full SHA for 0ed83ef
src/arrays.js
@@ -18,7 +18,8 @@ const map = (elements, cb) => {
18
19
const reduce = (elements, cb, startingValue) => {
20
// Combine all elements into a single value going from left to right.
21
- // Elements will be passed one by one into `cb`.
+ // Elements will be passed one by one into `cb` along with the `startingValue`.
22
+ // `startingValue` should be the first argument passed to `cb` and the array element should be the second argument.
23
// `startingValue` is the starting value. If `startingValue` is undefined then make `elements[0]` the initial value.
24
};
25
0 commit comments