diff --git a/doc/README.md b/doc/README.md index 163d27ee2..4449273d6 100644 --- a/doc/README.md +++ b/doc/README.md @@ -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`. diff --git a/lodash.js b/lodash.js index 4d279583a..eac17ca72 100644 --- a/lodash.js +++ b/lodash.js @@ -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.