File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -465,9 +465,10 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>
465
465
< span class ="alias "> Alias: < b > collect</ b > </ span >
466
466
< br />
467
467
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 > .
471
472
</ p >
472
473
< pre >
473
474
_.map([1, 2, 3], function(num){ return num * 3; });
You can’t perform that action at this time.
0 commit comments