Tweak _.at docs.

Former-commit-id: 505e34b0a151287d78da73a1140d4aefdf45b43b
This commit is contained in:
John-David Dalton
2013-02-14 09:03:06 -08:00
parent 506f585d78
commit 56b6d50479
4 changed files with 8 additions and 8 deletions

View File

@@ -2127,7 +2127,7 @@
/*--------------------------------------------------------------------------*/
/**
* Creates an array of elements from the specified index(es), or keys, of the
* Creates an array of elements from the specified indexes, or keys, of the
* `collection`. Indexes may be specified as individual arguments or as arrays
* of indexes.
*
@@ -2135,7 +2135,7 @@
* @memberOf _
* @category Collections
* @param {Array|Object|String} collection The collection to iterate over.
* @param {Array|Number|String} [index1, index2, ...] The index(es) of
* @param {Array|Number|String} [index1, index2, ...] The indexes of
* `collection` to retrieve, either as individual arguments or arrays.
* @returns {Array} Returns a new array of elements corresponding to the
* provided indexes.

4
dist/lodash.js vendored
View File

@@ -1984,7 +1984,7 @@
/*--------------------------------------------------------------------------*/
/**
* Creates an array of elements from the specified index(es), or keys, of the
* Creates an array of elements from the specified indexes, or keys, of the
* `collection`. Indexes may be specified as individual arguments or as arrays
* of indexes.
*
@@ -1992,7 +1992,7 @@
* @memberOf _
* @category Collections
* @param {Array|Object|String} collection The collection to iterate over.
* @param {Array|Number|String} [index1, index2, ...] The index(es) of
* @param {Array|Number|String} [index1, index2, ...] The indexes of
* `collection` to retrieve, either as individual arguments or arrays.
* @returns {Array} Returns a new array of elements corresponding to the
* provided indexes.

View File

@@ -945,11 +945,11 @@ _([1, 2, 3]).valueOf();
### <a id="_atcollection--index1-index2-"></a>`_.at(collection [, index1, index2, ...])`
<a href="#_atcollection--index1-index2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2157 "View in source") [&#x24C9;][1]
Creates an array of elements from the specified index(es), or keys, of the `collection`. Indexes may be specified as individual arguments or as arrays of indexes.
Creates an array of elements from the specified indexes, or keys, of the `collection`. Indexes may be specified as individual arguments or as arrays of indexes.
#### Arguments
1. `collection` *(Array|Object|String)*: The collection to iterate over.
2. `[index1, index2, ...]` *(Array|Number|String)*: The index(es) of `collection` to retrieve, either as individual arguments or arrays.
2. `[index1, index2, ...]` *(Array|Number|String)*: The indexes of `collection` to retrieve, either as individual arguments or arrays.
#### Returns
*(Array)*: Returns a new array of elements corresponding to the provided indexes.

View File

@@ -2134,7 +2134,7 @@
/*--------------------------------------------------------------------------*/
/**
* Creates an array of elements from the specified index(es), or keys, of the
* Creates an array of elements from the specified indexes, or keys, of the
* `collection`. Indexes may be specified as individual arguments or as arrays
* of indexes.
*
@@ -2142,7 +2142,7 @@
* @memberOf _
* @category Collections
* @param {Array|Object|String} collection The collection to iterate over.
* @param {Array|Number|String} [index1, index2, ...] The index(es) of
* @param {Array|Number|String} [index1, index2, ...] The indexes of
* `collection` to retrieve, either as individual arguments or arrays.
* @returns {Array} Returns a new array of elements corresponding to the
* provided indexes.