Skip to content

Commit

Permalink
Merge pull request #701 from twalling/master
Browse files Browse the repository at this point in the history
update doc to reflect that times passes index to iterator
  • Loading branch information
jashkenas committed Aug 13, 2012
2 parents 2eb8d2d + 4f66975 commit 2c7cb73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Expand Up @@ -1347,7 +1347,7 @@ <h2 id="utility">Utility Functions</h2>
<p id="times">
<b class="header">times</b><code>_.times(n, iterator, [context])</code>
<br />
Invokes the given iterator function <b>n</b> times.
Invokes the given iterator function <b>n</b> times. Each invocation of <b>iterator</b> is called with an <tt>index</tt> argument.
</p>
<pre>
_(3).times(function(){ genie.grantWish(); });</pre>
Expand Down Expand Up @@ -1579,10 +1579,10 @@ <h2 id="links">Links &amp; Suggested Reading</h2>
chaining.
(<a href="https://github.com/robb/Underscore.m">source</a>)
</p>

<p>
<a href="http://kmalakoff.github.com/_.m/">_.m</a>, an alternative
Objective-C port that tries to stick a little closer to the original
<a href="http://kmalakoff.github.com/_.m/">_.m</a>, an alternative
Objective-C port that tries to stick a little closer to the original
Underscore.js API.
(<a href="https://github.com/kmalakoff/_.m">source</a>)
</p>
Expand Down

0 comments on commit 2c7cb73

Please sign in to comment.