Skip to content

Commit 1456d8f

Browse files
committed
Merge pull request #1863 from acgessler/patch-2
Update _.map docs for consistency with _.each
2 parents bee7c78 + 7e45372 commit 1456d8f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,10 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>
465465
<span class="alias">Alias: <b>collect</b></span>
466466
<br />
467467
Produces a new array of values by mapping each value in <b>list</b>
468-
through a transformation function (<b>iteratee</b>). If <b>list</b>
469-
is a JavaScript object, <b>iteratee</b>'s arguments will be
470-
<tt>(value, key, list)</tt>.
468+
through a transformation function (<b>iteratee</b>). The <tt>iteratee</tt>
469+
is passed three arguments: the <tt>value</tt>, then the <tt>index</tt>
470+
(or <tt>key</tt>) of the iteration, and finally a reference to the entire
471+
<tt>list</tt>.
471472
</p>
472473
<pre>
473474
_.map([1, 2, 3], function(num){ return num * 3; });

0 commit comments

Comments
 (0)