diff options
Diffstat (limited to 'lib/reduce.js')
-rw-r--r-- | lib/reduce.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/reduce.js b/lib/reduce.js index 571bc5a..d13ace0 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) - |