From bd8f882c94bf4397db0278dc167948e1e8444929 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 22 Dec 2012 11:57:14 -0600 Subject: [PATCH] Tweak `_.reduce` documentation. Former-commit-id: 58d8a724dbf53594420e355c3d29ae28b53a7886 --- doc/README.md | 2 +- lodash.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/README.md b/doc/README.md index be3e98312..ab0b3a6ee 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1190,7 +1190,7 @@ _.pluck(stooges, 'name'); ### `_.reduce(collection [, callback=identity, accumulator, thisArg])` # [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2465 "View in source") [Ⓣ][1] -Boils down a `collection` to a single value. The initial state of the reduction is `accumulator` and each successive step of it should be returned by the `callback`. The `callback` is bound to `thisArg` and invoked with `4` arguments; for arrays they are *(accumulator, value, index|key, collection)*. +Reduces a `collection` to a single value. The initial state of the reduction is `accumulator` and each successive step of it should be returned by the `callback`. The `callback` is bound to `thisArg` and invoked with four arguments; for arrays they are *(accumulator, value, index|key, collection)*. #### Aliases *foldl, inject* diff --git a/lodash.js b/lodash.js index 644f17032..34cf62250 100644 --- a/lodash.js +++ b/lodash.js @@ -2443,9 +2443,9 @@ } /** - * Boils down a `collection` to a single value. The initial state of the - * reduction is `accumulator` and each successive step of it should be returned - * by the `callback`. The `callback` is bound to `thisArg` and invoked with 4 + * Reduces a `collection` to a single value. The initial state of the reduction + * is `accumulator` and each successive step of it should be returned by the + * `callback`. The `callback` is bound to `thisArg` and invoked with four * arguments; for arrays they are (accumulator, value, index|key, collection). * * @static