Skip to content

Commit

Permalink
Clarify _.each return
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve committed Feb 12, 2014
1 parent b5f074f commit 0c1a987
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>
passed. Each invocation of <b>iterator</b> is called with three arguments:
<tt>(element, index, list)</tt>. If <b>list</b> is a JavaScript object, <b>iterator</b>'s
arguments will be <tt>(value, key, list)</tt>. Delegates to the native
<b>forEach</b> function if it exists, and returns the original <b>list</b> for chaining.
<b>forEach</b> function if it exists. Returns the <b>list</b> for chaining.
</p>
<pre>
_.each([1, 2, 3], alert);
Expand Down Expand Up @@ -2001,8 +2001,7 @@ <h2 id="changelog">Change Log</h2>
placeholder variable, to be filled-in later.
</li>
<li>
The <tt>_.each</tt> function now returns the original iterated list
(just like it used to), for better chaining.
The <tt>_.each</tt> function now returns a reference to the list for chaining.
</li>
<li>
&hellip; and more miscellaneous refactoring.
Expand Down

0 comments on commit 0c1a987

Please sign in to comment.