diff --git a/docs/v3/scripts/async.js b/docs/v3/scripts/async.js index 6dd3a82f1..cafb8c9a8 100644 --- a/docs/v3/scripts/async.js +++ b/docs/v3/scripts/async.js @@ -1606,7 +1606,7 @@ * @param {AsyncFunction} iteratee - A function applied to each item in the * array to produce the next step in the reduction. * The `iteratee` should complete with the next state of the reduction. - * If the iteratee complete with an error, the reduction is stopped and the + * If the iteratee completes with an error, the reduction is stopped and the * main `callback` is immediately called with the error. * Invoked with (memo, item, callback). * @param {Function} [callback] - A callback which is called after all the @@ -3441,7 +3441,7 @@ * @param {AsyncFunction} iteratee - A function applied to each item in the * array to produce the next step in the reduction. * The `iteratee` should complete with the next state of the reduction. - * If the iteratee complete with an error, the reduction is stopped and the + * If the iteratee completes with an error, the reduction is stopped and the * main `callback` is immediately called with the error. * Invoked with (memo, item, callback). * @param {Function} [callback] - A callback which is called after all the diff --git a/lib/reduce.js b/lib/reduce.js index 571bc5a6f..d13ace090 100644 --- a/lib/reduce.js +++ b/lib/reduce.js @@ -26,7 +26,7 @@ import awaitify from './internal/awaitify' * @param {AsyncFunction} iteratee - A function applied to each item in the * array to produce the next step in the reduction. * The `iteratee` should complete with the next state of the reduction. - * If the iteratee complete with an error, the reduction is stopped and the + * If the iteratee completes with an error, the reduction is stopped and the * main `callback` is immediately called with the error. * Invoked with (memo, item, callback). * @param {Function} [callback] - A callback which is called after all the @@ -55,4 +55,3 @@ function reduce(coll, memo, iteratee, callback) { }, err => callback(err, memo)); } export default awaitify(reduce, 4) - diff --git a/lib/reduceRight.js b/lib/reduceRight.js index 994eaf9a1..83ff31f7b 100644 --- a/lib/reduceRight.js +++ b/lib/reduceRight.js @@ -15,7 +15,7 @@ import reduce from './reduce'; * @param {AsyncFunction} iteratee - A function applied to each item in the * array to produce the next step in the reduction. * The `iteratee` should complete with the next state of the reduction. - * If the iteratee complete with an error, the reduction is stopped and the + * If the iteratee completes with an error, the reduction is stopped and the * main `callback` is immediately called with the error. * Invoked with (memo, item, callback). * @param {Function} [callback] - A callback which is called after all the