From 73e64f3e4a63de4748563db1f1ead38aa38b9177 Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Mon, 22 Oct 2012 11:59:31 -0700 Subject: [PATCH] Tweaked and rebuilt docs for _.groupBy. Former-commit-id: a541ec305742ab6f330aeceae4804577f64905ab --- doc/README.md | 4 ++-- lodash.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/README.md b/doc/README.md index 1969216c2..b757dfa9a 100644 --- a/doc/README.md +++ b/doc/README.md @@ -996,7 +996,7 @@ _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, alert); ### `_.groupBy(collection, callback|property [, thisArg])` # [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2017 "View in source") [Ⓣ][1] -Creates an object composed of keys returned from running each element of `collection` through a `callback`. The corresponding value of each key is an array of elements passed to `callback` that returned the key. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. The `callback` argument may also be the name of a property to count by *(e.g. 'length')*. +Creates an object composed of keys returned from running each element of `collection` through a `callback`. The corresponding value of each key is an array of elements passed to `callback` that returned the key. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. The `callback` argument may also be the name of a property to group by *(e.g. 'length')*. #### Arguments 1. `collection` *(Array|Object|String)*: The collection to iterate over. @@ -3084,4 +3084,4 @@ _.uniqueId('contact_'); - [1]: #Arrays "Jump back to the TOC." \ No newline at end of file + [1]: #Arrays "Jump back to the TOC." diff --git a/lodash.js b/lodash.js index b770a2db8..d092839b7 100644 --- a/lodash.js +++ b/lodash.js @@ -1993,7 +1993,7 @@ * `collection` through a `callback`. The corresponding value of each key is an * array of elements passed to `callback` that returned the key. The `callback` * is bound to `thisArg` and invoked with three arguments; (value, index|key, collection). - * The `callback` argument may also be the name of a property to count by (e.g. 'length'). + * The `callback` argument may also be the name of a property to group by (e.g. 'length'). * * @static * @memberOf _