Skip to content

Commit

Permalink
Fixes #635: document that _.times passes the iteration count
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Aug 31, 2012
1 parent 866d244 commit 2ebe669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -1361,7 +1361,7 @@ <h2 id="utility">Utility Functions</h2>
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>
_(3).times(function(n){ genie.grantWishNumber(n); });</pre>

<p id="mixin">
<b class="header">mixin</b><code>_.mixin(object)</code>
Expand Down

0 comments on commit 2ebe669

Please sign in to comment.