Tweak _.max and _.min documentation. [ci skip]

Former-commit-id: c8506aa1b15143bc8ee1eea59027eed188a745ba
This commit is contained in:
John-David Dalton
2012-11-04 18:36:05 -08:00
parent c507887bdd
commit 04bfe098ed
2 changed files with 4 additions and 4 deletions

View File

@@ -1096,7 +1096,7 @@ _.map({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { return num * 3; });
Retrieves the maximum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
#### Arguments
1. `collection` *(Array|Object|String)*: The collection to iterate over.
1. `collection` *(Array|Object)*: The collection to iterate over.
2. `[callback]` *(Function)*: The function called per iteration.
3. `[thisArg]` *(Mixed)*: The `this` binding of `callback`.
@@ -1128,7 +1128,7 @@ _.max(stooges, function(stooge) { return stooge.age; });
Retrieves the minimum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
#### Arguments
1. `collection` *(Array|Object|String)*: The collection to iterate over.
1. `collection` *(Array|Object)*: The collection to iterate over.
2. `[callback]` *(Function)*: The function called per iteration.
3. `[thisArg]` *(Mixed)*: The `this` binding of `callback`.

View File

@@ -2105,7 +2105,7 @@
* @static
* @memberOf _
* @category Collections
* @param {Array|Object|String} collection The collection to iterate over.
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} [callback] The function called per iteration.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Mixed} Returns the maximum value.
@@ -2154,7 +2154,7 @@
* @static
* @memberOf _
* @category Collections
* @param {Array|Object|String} collection The collection to iterate over.
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} [callback] The function called per iteration.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Mixed} Returns the minimum value.