Skip to content

Commit

Permalink
Merge pull request #2864 from jgonggrijp/range-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Jul 27, 2020
2 parents 4a57e9a + 3c92856 commit 6ee1d2e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1179,12 +1179,13 @@ <h2 id="arrays">Array Functions</h2>
<b class="header">range</b><code>_.range([start], stop, [step])</code>
<br />
A function to create flexibly-numbered lists of integers, handy for
<tt>each</tt> and <tt>map</tt> loops. <b>start</b>, if omitted, defaults
to <i>0</i>; <b>step</b> defaults to <i>1</i>. Returns a list of integers
from <b>start</b> (inclusive) to <b>stop</b> (exclusive), incremented (or decremented) by <b>step</b>,
exclusive. Note that ranges that <b>stop</b> before they <b>start</b>
are considered to be zero-length instead of negative — if you'd like a
negative range, use a negative <b>step</b>.
<tt>each</tt> and <tt>map</tt> loops. <b>start</b>, if omitted,
defaults to <i>0</i>; <b>step</b> defaults to <i>1</i>. Returns a list
of integers from <b>start</b> (inclusive) to <b>stop</b> (exclusive),
incremented (or decremented) by <b>step</b>. Note that ranges that
<b>stop</b> before they <b>start</b> are considered to be zero-length
instead of negative — if you'd like a negative range, use a negative
<b>step</b>.
</p>
<pre>
_.range(10);
Expand Down

0 comments on commit 6ee1d2e

Please sign in to comment.