Skip to content

Commit

Permalink
Update _.each documentation. [closes jashkenas#867]
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Dec 1, 2012
1 parent 0ca412d commit a3e0175
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,10 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>
<b>forEach</b> function if it exists.
</p>
<pre>
_.each([1, 2, 3], function(num){ alert(num); });
_.each([1, 2, 3], alert);
=&gt; alerts each number in turn...
_.each({one : 1, two : 2, three : 3}, function(num, key){ alert(num); });
=&gt; alerts each number in turn...</pre>
_.each({one : 1, two : 2, three : 3}, alert);
=&gt; alerts each number value in turn...</pre>

<p id="map">
<b class="header">map</b><code>_.map(list, iterator, [context])</code>
Expand Down

0 comments on commit a3e0175

Please sign in to comment.