Skip to content

Commit

Permalink
Merge pull request #2510 from captbaritone/aliases
Browse files Browse the repository at this point in the history
Cleanup docs for methods with multiple aliases
  • Loading branch information
michaelficarra committed Apr 24, 2016
2 parents cb95672 + e900553 commit 9c18116
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 @@ -499,7 +499,7 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>

<p id="reduce">
<b class="header">reduce</b><code>_.reduce(list, iteratee, [memo], [context])</code>
<span class="alias">Aliases: <b>inject, foldl</b></span>
<span class="alias">Aliases: <b>inject</b>, <b>foldl</b></span>
<br />
Also known as <b>inject</b> and <b>foldl</b>, reduce boils down a <b>list</b> of values into a single value.
<b>Memo</b> is the initial state of the reduction, and each successive step of it should be returned by
Expand Down Expand Up @@ -826,7 +826,7 @@ <h2 id="arrays">Array Functions</h2>

<p id="first">
<b class="header">first</b><code>_.first(array, [n])</code>
<span class="alias">Alias: <b>head</b>, <b>take</b></span>
<span class="alias">Aliases: <b>head</b>, <b>take</b></span>
<br />
Returns the first element of an <b>array</b>. Passing <b>n</b> will
return the first <b>n</b> elements of the array.
Expand Down Expand Up @@ -861,7 +861,7 @@ <h2 id="arrays">Array Functions</h2>

<p id="rest">
<b class="header">rest</b><code>_.rest(array, [index])</code>
<span class="alias">Alias: <b>tail, drop</b></span>
<span class="alias">Aliases: <b>tail</b>, <b>drop</b></span>
<br />
Returns the <b>rest</b> of the elements in an array. Pass an <b>index</b>
to return the values of the array from that index onward.
Expand Down

0 comments on commit 9c18116

Please sign in to comment.